Skip to content

fix(sync2): serve only the roster to a removed device on the LAN - #2215

Merged
A-EDev merged 3 commits into
mainfrom
fix/sync2-lan-removed-device
Nov 19, 2026
Merged

A-EDev merged 3 commits into
mainfrom
fix/sync2-lan-removed-device

Conversation

@A-EDev

@A-EDev A-EDev commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Related issue

Flow-Tube/Flow-Desktop#662

Change type

  • Bug fix
  • Feature
  • Refactor or maintenance
  • Build, packaging, or CI
  • Documentation

Validation

  • ./gradlew :app:assembleGithubDebug: not run separately; the debug sources compiled for the unit tests below
  • ./gradlew :app:testGithubDebugUnitTest: run for --tests 'io.github.aedev.flow.sync2.*' only: 65 classes, 405 tests, 0 failures
  • I ran any additional flavor-specific build or test tasks affected by this change. ./gradlew ktlintCheck passed; python3 .github/scripts/nightly_notes.py --check passed
  • I manually tested the affected behavior on an Android device or emulator.

New tests in LanSyncTest: a_removed_device_is_answered_with_the_roster_and_nothing_else, a_removed_device_learns_its_removal_from_a_member_it_dials, a_member_refuses_a_device_it_removed_when_it_dials_it.

Test device and Android version:

Risk and compatibility

  • Network: a device this phone removed can still complete the LAN hello under an epoch it was a device in, and read the roster entries (device ids, public keys, sealed names). It gets no wraps, objects or live delivery.

  • Devices without this change still refuse a removed peer, so a removed device learns of its removal only from an updated member.

  • No Room schema, preference, permission or background work change.

  • The change does not introduce secrets, private data, or unexpected telemetry.

  • New user-facing text uses Android string resources.

  • Dependency and lockfile changes are intentional and limited to this PR.

  • Room schema changes include the required version bump and migration, or this PR does not change the Room schema.

  • Breaking changes and upgrade steps are clearly documented.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 19, 2026
@A-EDev
A-EDev merged commit 52411be into main Nov 19, 2026
19 of 21 checks passed
@A-EDev
A-EDev deleted the fix/sync2-lan-removed-device branch November 19, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant