Skip to content

Signal group changes say who added or removed whom, and a group you are no longer in says so - #1051

Open
unRekable wants to merge 1 commit into
mainfrom
fix/signal-group-change-lines
Open

unRekable wants to merge 1 commit into
mainfrom
fix/signal-group-change-lines

Conversation

@unRekable

Copy link
Copy Markdown
Collaborator

What changed and why

A Signal group changes, and the person here saw too little of it (#720). Three things were open on main.

  • A rename could stay unseen. A new revision alone did not tell the group again. Every revision now tells the stored group whole, also when it produced no line.
  • The lines said too little. They did not say who did it, nor whether someone was added or joined by the link, was removed or left. They now do: "Grace Ombra removed Alan Ferro from the group", "Alan Ferro joined the group using the group link", "Alan Ferro left the group". Who did it is the sender of the message that carries the change, and only for the one revision that message fetched. The change's bytes are never read here.
  • Leaving was not on the row. A member who is no longer in the group now reads "You are no longer in this group". An invited or asking group is not mislabelled.

What this change does not do: verify a change's signature. The library this tree reads groups through drops the server signature when it decrypts, and nothing calls the check. That is written as a comment where a change is applied. The check is not built, because what the server signs is not in the tree and could not be tested.

Type

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

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

Proof

Scenario: e2e/scenarios/signal-group-change-lines

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. A member is removed and added back, one joins by the group link, one leaves. The row must say "You are no longer in this group" after this account is removed and be writable again after it is added back, and the lines must name who did what. On main the row's reason stays empty after a removal, so this driver fails there.

Lab run: not made. The driver was not run against the real chatd on a lab host.

Not shown: the real wire. real.rs is reached by no test, because presage has no stand-in for the Groups Service. Who did a change, the rule of the one fetched revision and the note on the signature were read, not run. Nothing ran against a Signal account.

Left open: a removed member, whose fetch is refused, still gets no name. A current member can still claim a change they did not make without a signature check. A change made from this device still gets its line late.

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: 3680 of 3681 passed in the full run. an_in_process_mediad_hears_and_is_heard_like_a_process failed there and passed alone at once. This change does not touch mediad. 28 skipped. Then cargo test --workspace --doc --features tinyclient/gui.

Compatibility

No protocol change.

Risk and rollback

The lines on the real wire depend on a path no test reaches. Where the sender cannot be named, the lines fall back to saying that someone joined or is gone, as before. Revert the commit.

Release note

Signal group changes say who added or removed whom, and a group you are no longer in says so.

Part of #720.

…nd say why a group this account is out of is read-only
@unRekable
unRekable requested a review from itz4blitz as a code owner December 5, 2026 15:54
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.

1 participant