Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Only use room_ids if in get_room_events_stream if is_guest
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Feb 1, 2016
1 parent d98a9f2 commit ceb6b86
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions synapse/storage/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,6 @@ def get_room_events_stream(
" WHERE m.user_id = ? AND m.membership = 'join'"
)
current_room_membership_args = [user_id]
if room_ids:
current_room_membership_sql += " AND m.room_id in (%s)" % (
",".join(map(lambda _: "?", room_ids))
)
current_room_membership_args = [user_id] + room_ids

# We also want to get any membership events about that user, e.g.
# invites or leave notifications.
Expand Down

0 comments on commit ceb6b86

Please sign in to comment.