SYN-47: Fix bug where we still returned events for rooms we had left.

SYN-47 #resolve
This commit is contained in:
Erik Johnston 2014-09-19 14:45:21 +01:00
parent fba67ef951
commit 28bcd01e8d
2 changed files with 174 additions and 1 deletions

View file

@ -146,7 +146,7 @@ class StreamStore(SQLBaseStore):
current_room_membership_sql = (
"SELECT m.room_id FROM room_memberships as m "
"INNER JOIN current_state_events as c ON m.event_id = c.event_id "
"WHERE m.user_id = ?"
"WHERE m.user_id = ? AND m.membership = 'join'"
)
# We also want to get any membership events about that user, e.g.