From ff3b75557f5e0caf5e605a5e5d3936d6a4dd6c1b Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Wed, 17 Jun 2026 17:06:57 +0700 Subject: [PATCH] fix ongoing check --- shared/src/commonMain/kotlin/su/reya/coop/Nostr.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/su/reya/coop/Nostr.kt b/shared/src/commonMain/kotlin/su/reya/coop/Nostr.kt index cf31a16..5baa07e 100644 --- a/shared/src/commonMain/kotlin/su/reya/coop/Nostr.kt +++ b/shared/src/commonMain/kotlin/su/reya/coop/Nostr.kt @@ -744,7 +744,7 @@ class Nostr { val filter = Filter().kind(kind).author(userPubkey).pubkeys(pubkeys) // Determine if it's an ongoing room - val isOngoing = client?.database()?.query(filter)?.isEmpty() == false + val isOngoing = client?.database()?.query(filter)?.isEmpty() ?: false // Append room to map roomsMap[newRoom.id] =