* Integrate Tier 1 2.0.0 security and reliability fixes (#1941, #1935, #1662)
* Add author block controls to Place Feed, Home Feed, and threads
* Prep 2.0.0 App Store submission: update Privacy Policy and bump build to 3
* Remove unrelated board calls from PlaceFeedView
* Address unaddressed Codex review findings (#1931, #1946, #1961, #1924)
* Fix autocorrection callsite in ContentComposerView after #1913/#1870
* Keep channel invite links intact in every language (#1818)
* Fence in-flight notifications on panic wipe and drop DM senderName userInfo (#1783)
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
The test wrote the Tor preference to UserDefaults.standard and then slept. Panic tests that ran during the sleep called PrivacyModeSettings.resetForPanic(in: .standard). When the saved mode is stealth, it writes true to the same key, so the first check failed.
ChatViewModel now takes userDefaults in its testable init (default .standard). The stall handler reads the Tor preference from it. The app still uses .standard.
* perf(nostr): 8-17x faster Bech32 encode/decode with ASCII lookup tables and streaming polymod
* fix(lint): use failable String(bytes:encoding:) for HRP in Bech32.decode
* ci: rerun checks after the simulator job was cancelled
A formatted row is cached on its message. The key held theme, seal, scheme and isSelf, but the text also shows the sender's color and highlights mentions of my nickname. A geochat sender outside the 5-minute roster kept the fallback color on earlier rows after they posted live, and a rename left the old mention highlight. Both are now part of the key.
* Document the subscription backoff ceiling
Split the existing PR change into a smaller reviewable piece.
Original change: Pin subscription recovery boundary and steady-state rate
* Let subscription announcements recover after sustained retries
Split the existing PR change into a smaller reviewable piece.
Original change: Pin subscription recovery boundary and steady-state rate
* Test subscription limiter recovery and admission bounds
Split the existing PR change into a smaller reviewable piece.
Original change: Pin subscription recovery boundary and steady-state rate
A LazyVStack drops rows outside the visible area. When the keyboard
shrank the sheet, it dropped the focused geohash field. A VStack keeps
it, and the list is short.
Fixes#1797.
* feat(ui): enable autocorrection for regular chat messages while preserving it off for commands
* test(ui): add unit tests for composer autocorrection policy
* fix(ui): trim leading whitespace before detecting slash commands for autocorrection
* fix(ui): mark shouldDisableAutocorrection internal for unit test access
* fix(ui): move shouldDisableAutocorrection out of private extension
* drop notify-on-connect options from queued BLE connects
Those keys are what raises the lock-screen accessory prompt that names the app.
* drop notify-on-connect options from background pending connects
The wake-on-proximity arm path was the other place those options were passed.
* say people instead of users in the Bluetooth usage strings
House copy never says user, and these two lines were the ones still doing it.
Since #1928 the app targets no longer compile Localizable.xcstrings into
.lproj tables, so a string literal handed to Text/Label/TextField, or an
explicit LocalizedStringKey, finds no table and renders its raw key in
every locale. Dotted keys show the key itself, even in English.
Convert the seven affected call sites to String(localized:):
- settings nickname field (showed "content.input.nickname_placeholder")
- contact sheet verify button (two raw fingerprint.action.* keys)
- voice HUD "live %@" / "recording %@" (translated in the catalog, never shown)
- custom geohash field in LocationChannelsSheet and PlacesTabView (new
location_channels.custom_geohash_placeholder key, 30 locales; bn/fa/hi
reuse the catalog's existing transliterations, the rest keep the term)
Add noSwiftUILiteralKeysBypassTheCompressedCatalog, which fails on any
non-empty literal key under bitchat/ outside comments and #Preview blocks.
The three verify-sheet labels are allowlisted because #1815 rewrites
VerificationViews.swift.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The capability-proof watchdog drains the peer's parked Noise payloads
whenever the timeout-restore deferral is off, whether or not a session
exists. The drain encrypts under the current session and never
re-queues, so with the handshake still in flight past the 5 s deadline
every encryption fails: media with a transfer ID gets a visible
rejection, and a delivery ack, read receipt, verify, vouch or group
payload is dropped with a log line.
No attacker is needed. Sending a photo to a private-media peer with no
session arms the watchdog and starts a handshake; anything parked
behind that handshake is lost if it outlives 5 s, which is ordinary
over a multi-hop mesh. noteNoiseSessionCleared re-arms the watchdog as
a session goes away, so a slow reconnect with a pending media decision
takes the same path.
Of the drain's four production callers the watchdog was the only one
without a session precondition; the timeout-restore case was already
held back by deferredOutbound. It now drains only under an established
session and otherwise leaves the payloads for the drain that runs when
the session authenticates. The policy resolution is unchanged.
proofTimeoutBeforeHandshakeLeavesParkedAckForTheSession drives it
through the public path -- resolvePrivateMediaSendPolicy, then
sendDeliveryAck -- and forces the watchdog as the neighbouring
proof-timeout tests do. Without the guard it fails on its last
expectation: the parked count goes from 1 to 0. It needs one DEBUG-only
count hook, because _test_privateMediaTransferState only sees payloads
that carry a transfer ID.
Encryption fails closed throughout; nothing is sent unencrypted. The
drain's error path still drops what it cannot encrypt; whether it
should re-queue payloads without a transfer ID is left for review
rather than changed here.
Full SwiftPM suite green: 2068 tests in 222 suites.
After #1949 and #1950, ChatViewModel had no copy of retryPendingReadReceiptsIfViewing. The empty default hid that, so the app built and the retry did nothing. Without defaults, a missing member fails the build. The test mock now records both calls.
* 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.
* Add spatial Place Feed, Home Feed, BLE Gateway feed bridge, local WoT, Tor Blossom media, and 3D Globe beacons
* Address PR #1934 review findings and Periphery dead-code scan
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Remove per-row lock icon in private chats and show lock in group header
* Remove per-row verification badge from private chat rows
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Harden offline-to-online and mesh-to-Nostr transport handoffs
* Use inclusive identifiers in NostrRelayManagerTests for SwiftLint
* Fix Periphery dead-code findings on NetworkInterfaceSignature and unused helpers
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Require signed npub bindings on mesh favorites and surface short-ID ambiguity
* Add command.fav.ambiguous localization entries across all locales
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Add Phase 1 everyday utility: inbox tabs, encrypted history, friend invites, hybrid groups, and Privacy Mode
* Unify app chrome, sheets, DM navigation, and theme tokens across tabs
* Use slim 4-tab bottom bar with Settings tab and fix remote place titles
* Simplify all bars, sheets, and composers into one edge-to-edge chrome language
* Remove tap-to-info action from Nearby header title
* Keep floating glass bottom nav visible while typing and dismiss keyboard interactively
* Split Mesh Notices (Nearby) and Place Notes (Places) and fix first-mount top inset
* Use clean neutral Liquid Glass canvas and remove duplicate DM sheet backdrops
* Replace bottom nav with top-left dropdown, restore borderless floating glass, and move Location Notes to top of Places
* Bump version to 2.0.0, persist last tab, unify icons, and redesign notices sheets
* Unify 3D globe picker HUD onto floating Liquid Glass top bar and bottom dock
* Add swipe-right to pin and swipe-left to delete chats in inbox
* Place geo channel people count pill to the right of pin icon
* Clean up Nearby timeline: remove geo notes hint, gray echo band, and tighten top spacing
* Use normal title and sentence case across Settings and Info copy
* Move AppSupportFileStore disk writes and removals off the main thread
* Polish 2.0.0: async launch reads, onboarding, inbox search, delivery clarity, media/notifications, and copy casing
* Fix Release crash on launch: keep SwiftUI field metadata (without-names)
* Add in-chat search & jump, quoted replies, emoji reactions, and unified Contact Detail sheet (2.0.0 build 2)
* Add walkie-talkie deck and push-to-talk ergonomics
* Add Phase 3 walkie-talkie: mesh groups, auto-listen rules, and PushToTalk bridge
* Preserve 1.x Tor and RAM-only posture on upgrade, restore triple-tap wipe, and align privacy docs
* Fix compiler warnings in SystemPTTChannelManager and AppSupportFileStore
* Align peer colors across GeoDM avatars, quoted replies, and Light Mode self orange
* Indicate unread Nearby mesh messages in section switcher and Chats banner
* Remove pulsing MeshRadarView from empty Nearby chat
* Clip opaque photo blur inside card and refine dark mode reveal scrim
* Address PR #1925 review findings across invites, groups, history, and privacy mode
* Remove daily device sightings line from empty Nearby chat
* Fix SwiftLint unused_setter_value and Periphery dead-code warnings
* Remove remaining unused import and environment object for Periphery
* Replace stale mesh empty-state text with status-aware 1-liner
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Optimize Arti xcframework for binary size with build-std and stripped logs
* Compress non-plural app localizations into Localizations.zlib
* Ignore unused comment parameter in compressed String(localized:) overloads
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Harden BLE ingress, padding, scan duty, panic wipe, and remove NostrPoW bypass
Tier 0 security, privacy, and battery fixes:
- Return early on unverified announces in BLEAnnounceHandler so spoofed
announces cannot trigger dedup marks, UI refreshes, or forced announce-backs.
- Validate 0x25 group message framing and freshness before admitting to gossip,
relay, or UI; drop unknown MessageType values instead of relaying up to 128 KiB.
- Remove NostrPoW and the 8-bit rateLimitBypassBits sender-bucket bypass;
sign geohash kind-20000 events synchronously without cooperative-pool spin loops.
- Zeroize NoiseSymmetricState chainingKey and hash in place via memset_s.
- Use a 256-byte bucket stride in MessagePadding so every 1..2048 B frame pads
within single-byte PKCS#7 limits (0..255 B) with no unpadded gaps.
- Duty-cycle active idle BLE scanning for solo and 1-2 peer meshes and disable
AllowDuplicates when central links are saturated.
- Make TorManager panic directory wipe synchronous, restore userTorEnabled=true
on panic, clear remaining in-memory caches/clipboard, mark clipboard local-only
with expiry, and cover all connected iOS scenes in PrivacyScreen.
- Require explicit confirmation before Cashu clearnet web redeem, gate
bitchat:// deep links during panicWipeBlocked, dedup BoardStore tombstones by
(postID, authorSigningKey), protect Favorites/GroupStore against locked-boot
overwrites, synchronize SecureLogger DateFormatter, and preserve image
orientation + AFU file protection in ImageUtils.
* Gate ClipboardHelper.expirationInterval behind #if os(iOS) for Periphery
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
- Normalize/rebase Data slice indices in BLEInboundWriteBuffer across both the sequential fast path and oversized early-return path (#1893/#1888).
- Move fragment scan-pause coordination from BLEService into BLERadioController (BLEFragmentScanPauseTracker), binding pause tokens to scheduler reservations and cancelling on stopServices, panic reset, cancelTransfer, releaseReservation, and Bluetooth power-off/reset.
- Fence BLEService+Courier acceptCourierDeposit and sprayCourierMail messageQueue.async hops with capturePanicLifecycleGeneration() / isCurrentPanicLifecycleGeneration(_).
- Add direct BLEOutboundFragmentPlanner.makePlan(packet:...) overload so private-media v1 compatibility checks avoid throwaway SHA-256 request hashing.
- Simplify BLEIncomingFileStore.DirectoryCache to PendingDeliveryTracker (also cleared in resetPrivateMediaReceiptsForPanic), remove directory-path cache and locked static DateFormatter in favor of POSIX Calendar formatting.
- Remove unused @discardableResult on MessageRouter.flushOutbox(for:fallbackPeerID:persist:), add unknown-ack test during unseenRecoveryPendingPersistence, and pass isLocationAuthorized in PanicWipeCoverageTests.
In the empty state the topology content has no width-flexible child, so
the VStack hugs the widest caption line. The themed sheet background takes
that narrow frame, and the system sheet gray shows as gutters on the left
and right. Give the content a full-size frame, like FingerprintView does.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Fix MainActor Equatable warnings in message views and update test callers
* Update Xcode LastUpgradeCheck and scheme versions to 2720
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>
* Require signature verification for self-addressed public messages
* Reject fragmented and foreign-directed REQUEST_SYNC packets
* Gate DM read receipts on app active state and notify delayed Nostr DMs
* Cap media deflate ratio and protect private media from public quota eviction
* Use background-accessible file protection and allowlist message URL schemes
* Track macOS active/inactive transitions for DM read-receipt gating
---------
Co-authored-by: jack <jackjackbits@users.noreply.github.com>