70 Commits

Author SHA1 Message Date
heyaim
a6591ec57d Update relay-source branch for changes on main
Resolved the relay asset conflict while retaining the shared iOS snapshot. Focused Android relay checks and six Python runner tests passed.
2026-11-06 23:45:57 -06:00
heyaim
2fc6f47472
Clear unsent chat text when panic wipe is confirmed (#1027)
The chat screen stored the unsent message separately from the state cleared
by panic wipe, leaving old text visible after completion. Mention
suggestions could also put text back into the cleared input.

Cleared the input and its command and mention suggestions when the user
confirms the wipe. Rejected mention selections when suggestions are hidden
or the nickname is no longer in the current list, including older click
handlers and rows still visible during their closing animation.
2026-11-06 15:54:31 -08:00
callebtc
57bb99c170 Merge remote-tracking branch 'origin/main' into claude/ios-features-android-port-ebe483
# Conflicts:
#	app/src/main/java/com/bitchat/android/ui/ChatViewModel.kt
2026-10-26 12:40:40 +01:00
callebtc
fb7ee683dc Wipe spam filter history on panic and add Mesh Lab spam scenario
The spam filter keeps recent message text and sender keys for its
repeat checks, and panic clear left them in memory. Reset the shared
filter as part of the panic wipe.

Add a broadcast_spam Mesh Lab scenario so messaging validation covers
both admitted and filtered public messages: B must show two
near-copies from A, hide the third, and still show A's next ordinary
message. It runs phone-to-phone and phone-to-watch.
2026-10-25 20:16:09 +01:00
heyaim
62e020c9ae Merge main into read-the-same-relay-directory-as-ios 2026-10-25 07:37:40 -05:00
heyaim
e9c3340716 Reject rewritten relay addresses and refresh the bundled list
The directory parser converted path-bearing and other unsupported URL
forms into relay endpoints. Updated it to reject those rows while keeping
valid neighboring entries, and refreshed the bundled CSV from the
configured source.

Added independent rejection cases and accepted port-boundary controls,
updated the documentation’s test references, and removed the unrelated
CommandProcessor test re-enablement from this PR’s changes.

Nine rejection cases failed with the previous parser and passed with the
change. Local tests and debug builds passed with three existing test skips;
lint added no diagnostics against the tested main baseline. Physical Mesh
Lab validation remains unperformed.
2026-10-25 07:14:06 -05:00
callebtc
d32cfad700 Merge remote-tracking branch 'origin/main' into claude/ios-features-android-port-ebe483
# Conflicts:
#	docs/client-rewrite-contracts.md
2026-10-25 01:42:19 +02:00
callebtc
a000ed448c
Merge pull request #910 from Chessing234/fix/qr-reject-future-dated-timestamp
fix: reject a future-dated verification QR
2026-10-25 01:14:31 +02:00
callebtc
f7dc80fb2b
Merge pull request #964 from Chessing234/codex/bech32-canonical-padding
Reject noncanonical Bech32 padding and invalid prefix lengths
2026-10-25 01:14:21 +02:00
callebtc
df0b1389f1 Confirm every panic wipe stage; specify payload caps
- The panic wipe announces success only when every data-at-rest stage
  confirms: identity and signing-key prefs, Nostr keys, favorites, media,
  bookmarks, and the conversation database. Each stage now returns
  whether its wipe was committed instead of swallowing failures; any
  failure shows the incomplete message.
- Add docs/PACKET_PAYLOAD_LIMITS.md for the per-type admission rules and
  literal wire vectors with real DEFLATE bodies at and past the caps.
- Document the random sender ID in geohash envelopes.
2026-10-25 01:05:43 +02:00
a1denvalu3
6630705c23 Fix missing geohash channel participants 2026-10-23 14:15:42 +02:00
callebtc
8a83205919 Document participant visual validation 2026-10-22 17:41:14 +02:00
callebtc
17c1d10267 Bound chat workloads under heavy activity 2026-10-22 17:32:41 +02:00
heyaim
2c88f55907 Add cross-client relay vectors and harden cache refresh
Shared fixtures make the relay-selection rules executable on Android and
extracted iOS code. A partial-read regression reproduced the previous
cache-copy operation overwriting existing bytes before failing.

Added thirteen selection cases and documented the algorithm. Added
staged writes before atomic rename, cleanup attempts on refresh exit,
one refresh worker at initialization, and corrected status/error
interpolation. Restored three ignored tests. Atomic replacement depends
on filesystem support.

Local integration with main passed: 869 tests, zero failures or skips.
Debug builds passed; lint added no diagnostics against the tested main
baseline, which has existing errors and warnings. Cache-helper emulator
checks passed. Required physical Mesh Lab validation remains
unperformed.
2026-10-14 05:32:55 -05:00
heyaim
7cff2e3987 Handle relay port integer overflow without aborting parsing
A relay row with valid coordinates and a digit-only port outside the
integer range caused directory parsing to throw a NumberFormatException.
The surrounding load handlers caught the exception, but that parse
returned no relay list. This did not establish an application crash or a
delivery failure.

Changed the conversion to skip that row. Added a regression containing
valid rows before and after it, plus ordinary-port controls. Narrowed
the source, selection and test descriptions: sharing a source alone does
not establish equal loaded snapshots or successful message delivery.
Used the Kotlin preferences helper for asynchronous writes.

The integer-overflow port test reproduced the parsing failure before the
fix and passed afterward. The full test suites passed with three
unrelated skips, and debug builds passed. Lint reported errors and
warnings, with none in the changed files. Required physical Mesh Lab
validation remains unperformed.
2026-10-10 10:08:24 -05:00
Taksh
f94816908c Reject noncanonical Bech32 padding and invalid prefix lengths 2026-10-06 10:35:37 +05:30
Taksh
fba41f5c0b Document verification QR timestamp bounds
Split the existing PR change into a smaller reviewable piece.
Original change: Reject overflowed verification QR timestamp differences
2026-10-05 16:15:14 +05:30
heyaim
43ce034bcd Use synthetic fixtures and record the selection contract
Review follow-up from the automated pass. The selection tests carried a
real relay hostname and real city coordinates; AGENTS.md requires
synthetic, non-identifying fixtures. Both are replaced with clearly
synthetic values that keep the same shapes: the port-variant pair, the
one-coordinate tie group, and the duplicated nearest relay that used to
displace the fifth server.

The selection rules are also now recorded in
docs/client-rewrite-contracts.md, since agreeing clients are the point
of the change: same source file, same host key, same tie order.
Behavior is unchanged; RelayDirectoryTest covers it.
2026-09-07 19:01:10 -05:00
callebtc
9444acd33e
Merge pull request #869 from qutad/fix/nostr-ios-dm-lookback
fix(nostr): cap DM envelope backdating at 24 hours
2026-09-07 23:32:40 +03:00
callebtc
646044cd81 Clarify capability authentication scope 2026-08-17 19:14:05 +02:00
wollow
22f87a493a Add announce capability bit assignments 2026-08-13 15:11:54 +03:00
wollow
acfbacf78f fix(nostr): reserve two-hour DM timestamp margin 2026-08-11 22:37:44 +03:00
callebtc
16a22316b2 Disable nondeterministic Compose group mapping 2026-08-11 20:42:26 +02:00
callebtc
6c5d7d1ef0 Fix reproducible R8 mapping output 2026-08-11 19:33:44 +02:00
wollow
bc03d78972 changed to 23-hour-45-minute maximum backdating window 2026-08-11 18:06:25 +03:00
callebtc
7e8ea63230 Prepare reproducible Wear 0.1.0 release 2026-08-11 15:19:39 +02:00
wollow
76bf226f98 fix(nostr): cap DM envelope backdating at 24 hours 2026-08-11 14:52:16 +03:00
callebtc
17a173a685 Fix cropped README screenshot controls 2026-08-02 00:03:46 +02:00
callebtc
1965d4bd7e Refresh README feature screenshots 2026-08-01 23:25:03 +02:00
callebtc
e9bc8e0f31 docs(protocol): specify live voice v1 2026-08-01 00:42:32 +02:00
callebtc
cbc59aaf8b feat(voice): add live push-to-talk 2026-07-31 17:40:37 +02:00
callebtc
0e3a4fdd18 Refine README mesh conversation 2026-07-31 02:07:06 +02:00
callebtc
0f1eb56e66 Center README globe on the Middle East 2026-07-31 01:40:13 +02:00
callebtc
4a6aa4875e Refresh README screenshots for Pixel layout 2026-07-31 00:19:53 +02:00
callebtc
55f8e5e72c Upgrade README screenshots to QHD 2026-07-30 23:57:57 +02:00
callebtc
f34559a0e9 Add README feature screenshots 2026-07-30 19:43:26 +02:00
callebtc
c7ced41bcb
Merge pull request #822 from permissionlesstech/uniform-lists-design
Unify people lists with conversation-row avatar design
2026-07-29 19:39:07 +02:00
callebtc
44560b9792 Add Watch peer profiles and verification 2026-07-29 18:55:56 +02:00
callebtc
bf5bd8c417 fix: restore Android Studio sync with strict Gradle security 2026-07-29 18:15:50 +02:00
callebtc
97026d7bbb fix: lock wear dependencies in CI 2026-07-29 12:20:48 +02:00
callebtc
dcb77dc6b1 Merge remote-tracking branch 'origin/main' into codex/reproducible-builds 2026-07-29 12:08:12 +02:00
callebtc
5edc9f7d85 docs: add maintainer release runbook 2026-07-29 03:05:01 +02:00
callebtc
3b53b9bdcc
Merge pull request #805 from permissionlesstech/wear-os-1
Wear OS app: standalone bitchat client for Pixel Watch
2026-07-29 03:02:46 +02:00
callebtc
120cc8e901 docs: wear screenshots for PR - onboarding, chat, people, voice notes, recording overlay 2026-07-29 02:39:29 +02:00
callebtc
da5650ceb4 fix: keep release signing local 2026-07-29 02:06:43 +02:00
callebtc
c7720d3847 Fix private media routing for contact conversations 2026-07-29 00:43:39 +02:00
callebtc
e03e373caa plan 2026-07-28 20:58:17 +02:00
callebtc
71c257669a watch works 2026-07-28 20:55:15 +02:00
callebtc
bd3bb8c774 wear: M7 - black splash theme, final design review, build/run/test docs; all milestones except deferred M5 done 2026-07-28 18:41:22 +02:00
callebtc
6340976e1c wear: M2/M3/M4/M6 verified on hardware - mesh discovery, chat, Noise DMs, ambient survival, full mesh_lab suite green; composer UX fixes 2026-07-28 18:31:45 +02:00