From ce31d85323ca5eacf7b5d397e7ba867dc232612c Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 12 Jan 2026 14:33:21 +0700 Subject: [PATCH] record participant count before self-suppression --- bitchat/ViewModels/Extensions/ChatViewModel+Nostr.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bitchat/ViewModels/Extensions/ChatViewModel+Nostr.swift b/bitchat/ViewModels/Extensions/ChatViewModel+Nostr.swift index 42dbb35b..4159c089 100644 --- a/bitchat/ViewModels/Extensions/ChatViewModel+Nostr.swift +++ b/bitchat/ViewModels/Extensions/ChatViewModel+Nostr.swift @@ -280,6 +280,9 @@ extension ChatViewModel { } } + // Update participants last-seen for this pubkey + participantTracker.recordParticipant(pubkeyHex: event.pubkey) + // Skip only very recent self-echo from relay; include older self events for hydration if isSelf { let eventTime = Date(timeIntervalSince1970: TimeInterval(event.created_at)) @@ -303,9 +306,6 @@ extension ChatViewModel { nostrKeyMapping[PeerID(nostr_: event.pubkey)] = event.pubkey nostrKeyMapping[PeerID(nostr: event.pubkey)] = event.pubkey - // Update participants last-seen for this pubkey - participantTracker.recordParticipant(pubkeyHex: event.pubkey) - // If presence heartbeat (Kind 20001), stop here - no content to display if event.kind == NostrProtocol.EventKind.geohashPresence.rawValue { return