Files
bitchat/bitchatTests/Services
Jozef Koval 02e6c31d7a fix(security): cancel the in-flight GeoRelay fetch and drop deferred prekey bundles on panic wipe (#1937)
* fix(security): cancel in-flight GeoRelay fetch and drop deferred prekey bundles on panic wipe

Follow-up to #1902. A detached task does not inherit cancellation, so resetForPanic() did not stop a relay-list request that had started. The fetch now forwards the cancel into the detached task.

resetIdentityForPanic() left pendingPrekeyBundles in place, so a bundle deferred before the wipe entered the prekey store when its owner authenticated later. The reset now clears the map.

Adds a fill, clear, probe test for the peer color cache behind a DEBUG-only probe.

* test: place the GeoRelay request-cancel test before the Tor-wait test

PR #1935 adds tests after the Tor-wait test. A different place keeps the two changes free of a merge conflict.
2026-11-28 14:02:33 -10:00
..