mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 09:05:20 +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:
@@ -67,4 +67,19 @@ struct BLEOutboundNotificationBufferTests {
|
||||
|
||||
#expect(buffer.isEmpty)
|
||||
}
|
||||
|
||||
@Test
|
||||
func unsubscribeRemovesTargetSpecificCiphertextOnlyForThatCentral() {
|
||||
var buffer = BLEOutboundNotificationBuffer<String>()
|
||||
_ = buffer.enqueue(data: Data([1]), targets: ["gone"], capCount: 4)
|
||||
_ = buffer.enqueue(data: Data([2]), targets: ["gone", "live"], capCount: 4)
|
||||
_ = buffer.enqueue(data: Data([3]), targets: nil, capCount: 4)
|
||||
|
||||
buffer.removeTarget { $0 == "gone" }
|
||||
let remaining = buffer.takeAll()
|
||||
|
||||
#expect(remaining.map(\.data) == [Data([2]), Data([3])])
|
||||
#expect(remaining[0].targets == ["live"])
|
||||
#expect(remaining[1].targets == nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user