mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Don't assume that the event has a room_id or sender
This commit is contained in:
parent
9b6f3bc742
commit
4e05aab4f7
@ -191,8 +191,8 @@ class Filter(object):
|
||||
)
|
||||
else:
|
||||
return self.check_fields(
|
||||
event.room_id,
|
||||
event.sender,
|
||||
getattr(event, "room_id", None),
|
||||
getattr(event, "sender", None),
|
||||
event.type,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user