chore: fix some crash and performance issues (#45)

Reviewed-on: https://git.reya.su/reya/coop-mobile/pulls/45
This commit is contained in:
2026-07-15 12:44:28 +00:00
parent 1485a767ed
commit 30191170f1
11 changed files with 163 additions and 113 deletions
@@ -130,7 +130,7 @@ class RelayManager(private val nostr: Nostr) {
}
}
suspend fun setRelaylist(relays: Map<RelayUrl, RelayMetadata?>) {
suspend fun setRelayList(relays: Map<RelayUrl, RelayMetadata?>) {
try {
val event = EventBuilder.relayList(relays).finalizeAsync(signer)
@@ -143,7 +143,7 @@ class RelayManager(private val nostr: Nostr) {
throw IllegalStateException("Failed to set msg relays: ${e.message}", e)
}
}
suspend fun setMsgRelays(urls: List<RelayUrl>) {
try {
val event = EventBuilder.nip17RelayList(urls).finalizeAsync(signer)