github permissionlesstech/bitchat v2.1.3

38 minutes ago

bitchat 2.1.3 delivers app-switcher and Stealth Mode privacy hardening, panic-wipe fencing across voice capture, Tor/Arti, and push extensions, crash fixes, Cashu validation and display integrity fixes, BLE mesh and Nostr DM relay recovery improvements, and localization expanded to 61 locales.

Platform requirements: iOS 17.0+ / macOS 14.0+ (build 1).

Security, Privacy & Panic Wipe Hardening

  • App-Switcher Privacy Cover & Snapshot Hardening: Restored the iOS app-switcher privacy cover to on by default in Everyday Mode (#2219), hardened per-item snapshot cleanup (Library/SplashBoard/Snapshots and Library/Caches/Snapshots) with ignoreSnapshotOnNextApplicationLaunch() and retry on transient filesystem errors (#2214), and enforced covering over per-conversation RAM-only (.ephemeral) chats, loading disappearing timers (fail-closed), and sensitive Everyday sheets (CrewRadarSheetView, IdentitySyncSheetView) (#2215).
  • Stealth Mode, Lock-Screen PTT & Panic Wipe Fences: Redacted Lock-Screen Push-to-Talk labels in Stealth Mode and ensured panic wipe leaves active and iOS-restored PTT channels (#2104); suppressed unsolicited nearby-peer alerts in Stealth Mode (#2103); kept public #mesh auto-play off when toggled in Stealth Mode (#2188); aborted active and finalizing voice capture synchronously on panic wipe (#2221); fenced notification extension commits against panic wipe (#2196); serialized TorManager lifecycle transitions with panic-wipe fencing (#2185); and kept a temporary Tor lease open for post-panic push unregister (#2197).
  • Cashu, Media & Protocol Validation: Unified Cashu V3, V4, and Base64URL wire validation across chat and wallet (#2218), prevented misleading Cashu chip amounts and multi-mint host labels on invalid units, malformed proofs, or duplicate proof secrets (#2267), hardened Cashu swap recovery key fetches, claim linkage, sync races, and duplicate checkstate rows (#2192, #2191), hardened encrypted remote media validation, copy guard, view state, and Blossom/ImageDownsampler/WaveformCache purge races (#2283, #2223), hardened unbound-link RSR validation in BLE fragment reassembly (#2105), dropped prekeys with future consumed timestamps (#2177), formatted outgoing media filenames in UTC (#2194), and ignored non-finite NIP-40 expiration tags in note feeds (#2195).

Mesh, Nostr, Tor/Arti & Transport Reliability

  • Tor/Arti Cancellation & Relay Recovery: Rebuilt arti.xcframework with detached SOCKS5 task cancellation and per-run runtime reaping on stop (#2163), rebuilt TorURLSession before teardown and disconnected relays on Tor restart (#2187), drained Tor-ready waiters on dormancy and shutdown (#2222), fixed stalled Nostr DM relay recovery and offline handshake badge (#2260), cancelled dropped Nostr sockets in handleDisconnection (#2217), and kept Tor-ready EOSE trackers open until a relay receives REQ with opt-in grace deadlines (#2210, #2190).
  • BLE Fragmentation, Routing & Continuity: Preserved DMs and groups across BLE mesh and Nostr handoffs (#2183), cut directed BLE fragments to fit v1 frames (#2269), kept fragment assemblies alive while new pieces are arriving and scoped count-cap eviction to incomplete assemblies (#2270, #2213), retained gateway-carrier relays that gossip sync does not store (#2076), published offline feed posts to relays after a mesh uplink (#2170), and fixed BLE media capability proof recovery (#2261).
  • Read Receipts, Push & Rate Limiters: Prevented deferred READ receipts for messages viewed with receipts off (#2093), retained READ receipts when the Nostr ack queue is full (#2207), guarded push refresh against backward clock skew, launch races, and stale gateways (#2216), moved public message, sync-response, and source-route limiters onto ContinuousClock (#2198, #2212, #2199), pruned unsubscribed keys from inbound dedup tracking (#2211), retried failed identity saves on no-op updates (#2208), and removed per-byte String allocations from gateway/push hex coding (#2181, #2224, #2225).

Crash Fixes, UX & 61-Locale Localization

  • Crash & Lifecycle Fixes: Fixed the NotificationDelegate main-thread crash and remote media unowned-context trap (#2182), dispatched QR preview rotation KVO to the main thread and rejected zero-height split passes (#2287), and restored four view refreshes lost in the @Observable migration (#2209).
  • Chats, Feeds & Walkie-Talkie Polish: Fixed inbox chat deletion for learned Nostr routes and aliases (#2262), synced inbox mute state with the contact sheet (#2206), fixed Walkie-Talkie sheet spacing, live-voice duplicates, and stopping/cancelling locked recordings after view swaps (#2261, #2281), fixed followed updates in Home Feed with reply author profiles (#2228), added received-filename matching to chat and inbox search (#2186), displayed the verified seal on group chat rows and surfaced failed initial group invites (#2158, #2205), fixed public chat action routing/attribution and bridged delete notices (#2097, #2189), let /unblock undo feed blocks with confirmation (#2193), and showed /msg usage when no nickname is given (#2154).
  • 61-Locale Localization: Expanded localization to 61 locales with localized InfoPlist and synced knownRegions (#2184), fixed Chinese ephemeral timer copy and localization catalog gaps (#2282), guarded String(localized:) calls bypassing the compressed catalog (#2101), and refreshed stale panic copy and menu casing in older locales (#2201, #2203).

Tests & CI

  • Replaced fixed sleeps with condition waits in the voice note panic test (#2277), fixed racy tests in the sync and relay suites (#2166), added BLE evicted read-receipt coverage (#2092), and tightened the performance floor gate to fail when a benchmark has no floor (#2167).

Contributors

  • jack (jackjackbits)
  • Jozef Koval (jozanek)
  • Taksh Kothari (chessing234)
  • heyaim
  • Mohamed Benatallah (MohamedBen21)

Full Changelog: v2.1.2...v2.1.3

Don't miss a new bitchat release

NewReleases is sending notifications on new releases.