mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 19:25:23 +00:00
Harden PTT audio and the 1.7.1 release (#1423)
Centralize PTT and voice audio-session ownership, harden courier/bridge/outbox delivery and recovery, correct location and delivery-state races, add privacy/release metadata, and ship reproducible universal Arti slices with Release CI coverage. Validated by the full iOS suite, repeated audio/fragment/performance regressions, BitFoundation tests, strict lint and dead-code analysis, universal iOS Release builds, and iOS/macOS archives.
This commit is contained in:
@@ -246,6 +246,16 @@ final class MessageDeduplicationService {
|
||||
ContentNormalizer.normalizedKey(content)
|
||||
}
|
||||
|
||||
/// Removes the near-duplicate marker for a row that is being replaced,
|
||||
/// not merely deleted. Bridge-first/radio-second reconciliation needs the
|
||||
/// authenticated radio copy to pass the next pipeline flush after its
|
||||
/// unauthenticated bridge alias is removed.
|
||||
func forgetContent(_ content: String, ifRecordedAt timestamp: Date) {
|
||||
let key = ContentNormalizer.normalizedKey(content)
|
||||
guard contentCache.value(for: key) == timestamp else { return }
|
||||
contentCache.remove(key)
|
||||
}
|
||||
|
||||
// MARK: - Nostr Event Deduplication
|
||||
|
||||
/// Checks if a Nostr event has already been processed.
|
||||
|
||||
Reference in New Issue
Block a user