diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-12 17:57:02 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-12 17:57:02 +0100 |
commit | 14975ce5bcf4dac2720cc4be290100a580334393 (patch) | |
tree | 7b01e8c1b5071b015fdd147d27714113d6679fbf /synapse | |
parent | Fix bug where we no longer stored user_id on Pdus (diff) | |
download | synapse-14975ce5bcf4dac2720cc4be290100a580334393.tar.xz |
Fix bug where we relied on the current_state_events being updated when we are handling type specific persistence
Diffstat (limited to 'synapse')
-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 20f22057a2..676b2f2653 100644 --- a/synapse/storage/roommember.py +++ b/synapse/storage/roommember.py @@ -66,8 +66,8 @@ class RoomMemberStore(SQLBaseStore): # Check if this was the last person to have left. member_events = self._get_members_query_txn( txn, - where_clause="c.room_id = ? AND m.membership = ?", - where_values=(event.room_id, Membership.JOIN,) + where_clause="c.room_id = ? AND m.membership = ? AND m.user_id != ?", + where_values=(event.room_id, Membership.JOIN, target_user_id,) ) joined_domains = set() |