mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 01:59:21 -05:00
Only use room_ids if in get_room_events_stream if is_guest
This commit is contained in:
parent
d98a9f2583
commit
ceb6b8680a
@ -316,11 +316,6 @@ class StreamStore(SQLBaseStore):
|
|||||||
" WHERE m.user_id = ? AND m.membership = 'join'"
|
" WHERE m.user_id = ? AND m.membership = 'join'"
|
||||||
)
|
)
|
||||||
current_room_membership_args = [user_id]
|
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.
|
# We also want to get any membership events about that user, e.g.
|
||||||
# invites or leave notifications.
|
# invites or leave notifications.
|
||||||
|
Loading…
Reference in New Issue
Block a user