You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
I claim that it is impossible to hit the `continue` which is removed in
this commit. Setup:
- `events` is a list of all membership events in the range
`since < time <= now`.
- `non_joins` is the list of `e in events` with `e.membership` not equal
to`"join"`.
- `events` is a nonempty list by construction of
`mem_change_events_by_room_id`.
Rationale:
- We hit the deleted code only if `non_joins` is empty.
- If so, `events` consists only of `join` membership events.
- `events` is non_empty, so there was at least one join during the
sync period.
- Therefore the room_id will belong to
`sync_result_builder.joined_room_ids`. But this means we will have
`continue`d in the branch above.
- I'm assuming here that `joined_room_ids` and `events` are both using
the same `now_token.room_key`.
0 commit comments