mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 15:52:17 -04:00
Guest users must be joined to a room to see it in /sync
This commit is contained in:
parent
bf32922e5a
commit
392773ccb2
4 changed files with 56 additions and 143 deletions
|
@ -149,9 +149,6 @@ class FilterCollection(object):
|
|||
"include_leave", False
|
||||
)
|
||||
|
||||
def list_rooms(self):
|
||||
return self.room_filter.list_rooms()
|
||||
|
||||
def timeline_limit(self):
|
||||
return self.room_timeline_filter.limit()
|
||||
|
||||
|
@ -184,15 +181,6 @@ class Filter(object):
|
|||
def __init__(self, filter_json):
|
||||
self.filter_json = filter_json
|
||||
|
||||
def list_rooms(self):
|
||||
"""The list of room_id strings this filter restricts the output to
|
||||
or None if the this filter doesn't list the room ids.
|
||||
"""
|
||||
if "rooms" in self.filter_json:
|
||||
return list(set(self.filter_json["rooms"]))
|
||||
else:
|
||||
return None
|
||||
|
||||
def check(self, event):
|
||||
"""Checks whether the filter matches the given event.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue