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

Commit

Permalink
Merge pull request #544 from matrix-org/erikj/stream_rooms
Browse files Browse the repository at this point in the history
Only use room_ids if in get_room_events_stream if is_guest
  • Loading branch information
erikjohnston committed Feb 1, 2016
2 parents d98a9f2 + ceb6b86 commit 498c2e6
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 498c2e6

Please sign in to comment.