mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-29 08:29:22 +00:00
* 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.