mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
SYN-47: Fix bug where we still returned events for rooms we had left.
SYN-47 #resolve
This commit is contained in:
parent
fba67ef951
commit
28bcd01e8d
2 changed files with 174 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue