fix(mobile): reconcile presence snapshots after reconnect - #4850
Open
syntaxafterdark wants to merge 1 commit into
Open
fix(mobile): reconcile presence snapshots after reconnect#4850syntaxafterdark wants to merge 1 commit into
syntaxafterdark wants to merge 1 commit into
Conversation
Signed-off-by: syntaxafterdark <309209481+syntaxafterdark@users.noreply.github.com>
syntaxafterdark
marked this pull request as ready for review
August 5, 2026 07:23
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.
Summary
ptag, with the event pubkey as a fallback.Presence events are ephemeral, so stored-event backfill cannot recover updates missed while Android is backgrounded or reconnecting. Mobile previously depended only on live presence events; a missed event could therefore leave the displayed status stale indefinitely. This adds the snapshot reconciliation path already needed for ephemeral state while retaining live updates.
Related issue
Related to #4402, which reports message catch-up after Android backgrounding. This PR addresses the separate presence-reconciliation symptom and does not claim to fix stored-message catch-up.
Testing
dart format --output=none --set-exit-if-changedon both changed files: passed.. ./bin/activate-hermit && just ci: passed, including 1,177 mobile tests.No visual layout was changed, so before/after screenshots are not applicable.