This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Invites from ignored users may not be ignored #11506
Labels
A-Spec-Compliance
places where synapse does not conform to the spec
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Midway down the digestive system of Synapse's sync code, we fetch all membership changes for a user across the sync period.
After 1709,
event
will be the last element in the list of events, or it'll be unset if there were no such events. They're fetched in ascending stream ordering order, soevent
will be the membership change with highest stream ordering.synapse/synapse/handlers/sync.py
Lines 1703 to 1709 in d26808d
There are no other writes to
event
, but there is a read:synapse/synapse/handlers/sync.py
Lines 1794 to 1800 in d26808d
I smell a bug.
membership_change_events
consists of three events in this order:event
will be the invite event in room B.{A: [invite_A], B: [invite_B]}
.event.sender not in ignored users
event
refersinvite_B
, whose sender is not ignored. We then push invite_A down to the user.Well this is just embarrassing. Should be an easy fix though.
The text was updated successfully, but these errors were encountered: