diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-10-21 11:15:48 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-10-21 11:15:48 +0100 |
commit | e3d75f564ab1d17eb4ee47314f78c41553a486f1 (patch) | |
tree | 54ba9e04dd7d1b912d37cdb9ea4330623bf3a7a0 /synapse/storage | |
parent | Fix pep8 (diff) | |
download | synapse-e3d75f564ab1d17eb4ee47314f78c41553a486f1.tar.xz |
Include banned rooms in the archived section of v2 sync
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/roommember.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/roommember.py b/synapse/storage/roommember.py index 623400fd36..ae1ad56d9a 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -124,7 +124,7 @@ class RoomMemberStore(SQLBaseStore): invites.event_id for invite in invites ])) - def get_leave_events_for_user(self, user_id): + def get_leave_and_ban_events_for_user(self, user_id): """ Get all the leave events for a user Args: user_id (str): The user ID. @@ -132,7 +132,7 @@ class RoomMemberStore(SQLBaseStore): A deferred list of event objects. """ return self.get_rooms_for_user_where_membership_is( - user_id, [Membership.LEAVE] + user_id, (Membership.LEAVE, Membership.BAN) ).addCallback(lambda leaves: self._get_events([ leave.event_id for leave in leaves ])) |