Repository navigation
Conversation
…mputer listed on the phone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Signing out of Google Messages asks the phone to drop this computer. When that cannot be done (a QR pairing has no id to drop, the phone stays quiet, the relay refuses), chatd threw the refusal away, so nobody was told that this computer may still be listed on the phone (#703). The refusal's words now ride on the answer:
Statushas a fieldnotice. Settings › Accounts shows chatd's words under that network until dismissed. A sign-out while offline, which the tests only checked against a log file before, is told the same way.Type
Platforms
Proof
Scenario: e2e/scenarios/messages-sign-out-notice
The scenario starts this build's chatd on the scripted phone (
TINYCLIENT_MESSAGES_FAKE) and signs out four times over chatd's socket. A QR pairing, a phone that stays quiet and Messages offline must each carry the sentence; a sign-out whose unpair is answered must not. Onmainno sign-out answer carriesnotice, so three steps are red there.Lab run: not made. The driver was exercised only against a stand-in for chatd's answers, and the line in Settings › Accounts was never seen on screen.
Also run on this branch on Windows before this pull request:
cargo build --workspace --all-targets --features tinyclient/gui, thencargo nextest run --workspace --features tinyclient/gui(3682 passed, 28 skipped; new among them three scripted-wire tests intests/messages.rs, a protocol wire test and a window test), thencargo test --workspace --doc --features tinyclient/gui.Not shown, because it needs a live account: whether the phone agrees to the unpair. This tree still does not judge the phone's answer, because the published client sends the request without waiting for one and no reply layout is published. And a phone that answers with something empty is reported as quiet, so the sentence may then show without cause; it is worded with "may".
Compatibility
The protocol grows by one field on an existing answer. It has a default and is left off the wire when empty, so an older frame still reads; a test holds that.
Risk and rollback
A line appears in Settings › Accounts after a sign-out that could not unpair. Revert the commit.
Release note
Signing out of Google Messages says when this computer may stay listed on the phone.
Part of #703.