mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 17:25:20 +00:00
record participant count before self-suppression
This commit is contained in:
@@ -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
|
// Skip only very recent self-echo from relay; include older self events for hydration
|
||||||
if isSelf {
|
if isSelf {
|
||||||
let eventTime = Date(timeIntervalSince1970: TimeInterval(event.created_at))
|
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
|
||||||
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 presence heartbeat (Kind 20001), stop here - no content to display
|
||||||
if event.kind == NostrProtocol.EventKind.geohashPresence.rawValue {
|
if event.kind == NostrProtocol.EventKind.geohashPresence.rawValue {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user