Skip to content

Signal keeps the receipts and typing the phone last shared over a restart, and asks again at every connect - #1038

Closed
unRekable wants to merge 1 commit into
mainfrom
fix/signal-config-persisted
Closed

unRekable wants to merge 1 commit into
mainfrom
fix/signal-config-persisted

Conversation

@unRekable

Copy link
Copy Markdown
Collaborator

What changed and why

Signal's read receipts and typing were asked of the phone once per link and held only in memory. A restart turned both off until the phone answered again, and a link whose first answer never came was left without them (#738). chatd now keeps what the phone last said in its own file (signal/<account>.settings, beside the kept reactions, pins and stickers), starts from it, and asks again at every connect. The phone's later word wins. Nothing is sent that the account did not agree to: what is not known stays off.

Type

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

Scenario: e2e/scenarios/signal-settings-kept

The scenario starts this build's chatd on Signal's scripted wire, steers it the way crates/chatd/tests/signal.rs does, and speaks chatd's socket. The phone shares its settings, then is away for one restart (an empty signal.phone-away in the scratch directory, which this change adds to the scripted wire). After the restart a read goes out as "read receipts=true", a typing signal goes out, the message sent then does not say the receipts are off, and the kept file says on. When the phone answers later with receipts off, no receipt goes out. A build from before the change keeps nothing, so the kept-file steps fail there.

Lab run: not made. The driver was checked only against a stand-in for chatd's frames, never against the real chatd on a lab host.

Also run on this branch on Windows before this pull request: cargo build --workspace --all-targets --features tinyclient/gui, then cargo nextest run --workspace --features tinyclient/gui (3681 passed, 28 skipped; among them the two new scripted-wire tests and the new unit test), then cargo test --workspace --doc --features tinyclient/gui.

Compatibility

No protocol change. The kept file belongs to the adapter and every field in it has a default, so a missing or unknown field reads as off.

Risk and rollback

A receipt or a typing signal could be sent from what the phone said before a restart instead of from a fresh answer. The phone is asked at every connect and its answer wins, and a file that does not read is off. Revert the commit; the file can stay.

Release note

Signal keeps the read receipts and typing the phone last shared over a restart, and asks for them again at every connect.

Part of #738. Left: Settings › Privacy does not yet show the phone's state.

@itz4blitz

Copy link
Copy Markdown
Collaborator

Shipped in the 0.2.94 release via #1046.

@itz4blitz itz4blitz closed this Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants