From 28bcd01e8db14a70e020cd7dd188981f71e70258 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Fri, 19 Sep 2014 14:45:21 +0100 Subject: SYN-47: Fix bug where we still returned events for rooms we had left. SYN-47 #resolve --- synapse/storage/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse') diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py index 8c766b8a00..a76fecf24f 100644 --- a/synapse/storage/stream.py +++ b/synapse/storage/stream.py @@ -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. -- cgit 1.4.1