mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-11 17:34:45 +00:00
Don't assume that the event has a room_id or sender
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user