Add E2E test: sync filter behavior with not_senders#12
Merged
ThomasHalwax merged 1 commit intomainfrom Mar 20, 2026
Merged
Conversation
Documents how Tuwunel handles /sync when not_senders filters the joining user's own events: - Room DOES appear in rooms.join - Timeline: empty (own join event filtered by not_senders) - State: present (7 events from other users) - limited: true, prev_batch: present Tested with three variants: 1. No filter (baseline) 2. not_senders=[self] 3. not_senders=[self] + rooms=[roomId] All three show the room in rooms.join. The state block reliably contains events regardless of not_senders.
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.
Documents how Tuwunel handles
/syncwhennot_sendersfilters the joining user's own events.Findings
not_senders=[self]not_senders=[self]+rooms=[id]Key insight: The room always appears in
rooms.joinwith state events, even whennot_sendersfilters the user's own join from the timeline. ThestateEventscheck added in #11 can detect room appearance in this scenario — provided the sync long-poll includes the room in its filter at the time of the join.