chore: improve loading state handling #38

Merged
reya merged 3 commits from fix-loading-state into master 2026-07-07 04:09:29 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ea7e3fd3ed - Show all commits

View File

@@ -155,7 +155,7 @@ class Nostr {
val processedEvent = mutableSetOf<EventId>() val processedEvent = mutableSetOf<EventId>()
val notifications = client?.notifications() ?: return@supervisorScope val notifications = client?.notifications() ?: return@supervisorScope
val giftWrapQueue = Channel<Event>(Channel.UNLIMITED) val giftWrapQueue = Channel<Event>(1024)
var processedCount = 0 var processedCount = 0
var eoseReceived = false var eoseReceived = false

View File

@@ -82,7 +82,7 @@ class ProfileManager(private val nostr: Nostr) {
client?.sync(filter, relays) client?.sync(filter, relays)
} catch (e: Exception) { } catch (e: Exception) {
throw IllegalStateException("Failed to fetch mutual contacts: ${e.message}", e) println("Failed to sync mutual contacts: ${e.message}")
} }
} }