fix: use MeetingSpaceEvent.checkStatus() for nests feed thumb
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.
This commit is contained in:
+1
-2
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user