mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 02:42:17 -04:00
Comment
This commit is contained in:
parent
a297155a97
commit
e892457a03
2 changed files with 6 additions and 0 deletions
|
@ -254,6 +254,9 @@ class Filter(object):
|
|||
Returns:
|
||||
bool: True if the event matches
|
||||
"""
|
||||
# We usually get the full "events" as dictionaries coming through,
|
||||
# except for presence which actually gets passed around as its own
|
||||
# namedtuple type.
|
||||
if isinstance(event, UserPresenceState):
|
||||
sender = event.user_id
|
||||
room_id = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue