From d92db861a906aa64824a56e34b076120eb65a63d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Apr 2026 01:36:58 +0000 Subject: [PATCH] fix: use MeetingSpaceEvent.checkStatus() for nests feed thumb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NestsFeedLoaded.RenderLiveSpacesThumb gates LiveFlag/EndedFlag on the kind-30312 status tag verbatim, so a host that crashed without publishing a CLOSED replacement leaves the room flagged "live" indefinitely. checkStatus() applies the same 8-hour age-out the event's own helper uses, so abandoned OPEN rooms surface as EndedFlag instead. Also drop a stray println debug ("AABBCC …") in the same map block. --- .../amethyst/ui/screen/loggedIn/nests/NestsFeedLoaded.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/NestsFeedLoaded.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/NestsFeedLoaded.kt index 3bcc58b87..3ae1e44c4 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/NestsFeedLoaded.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/nests/NestsFeedLoaded.kt @@ -180,7 +180,6 @@ fun ObserveAndRenderSpace( val card by observeNoteAndMap(baseNote, accountViewModel) { when (val noteEvent = it.event) { is MeetingSpaceEvent -> { - println("AABBCC ${noteEvent.address()} ${noteEvent.status()}") NestCard( id = noteEvent.address(), name = noteEvent.dTag(), @@ -189,7 +188,7 @@ fun ObserveAndRenderSpace( subject = noteEvent.room()?.ifBlank { null }, content = noteEvent.summary(), participants = noteEvent.participants().toImmutableList(), - status = noteEvent.status(), + status = noteEvent.checkStatus(noteEvent.status()), starts = null, ) }