mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-07 02:22:38 -04:00
Don't assume that the event has a room_id or sender
This commit is contained in:
parent
9b6f3bc742
commit
4e05aab4f7
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,8 @@ class Filter(object):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return self.check_fields(
|
return self.check_fields(
|
||||||
event.room_id,
|
getattr(event, "room_id", None),
|
||||||
event.sender,
|
getattr(event, "sender", None),
|
||||||
event.type,
|
event.type,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue