Fix cached Noise reconnects atomically

This commit is contained in:
jack
2026-07-25 23:49:41 +02:00
parent 72855e11f8
commit 121d16ee39
11 changed files with 1011 additions and 111 deletions
@@ -20,6 +20,10 @@ struct PeerCapabilitiesTests {
let high = PeerCapabilities(rawValue: 1 << 9)
#expect(high.encoded() == Data([0x00, 0x02]))
#expect(
PeerCapabilities.nonDestructiveNoiseReplacement.encoded()
== Data([0x00, 0x04])
)
let all: PeerCapabilities = [.prekeys, .wifiBulk, .gateway, .groups, .board, .vouch, .meshDiagnostics, .privateMedia]
#expect(PeerCapabilities(encoded: all.encoded()) == all)