mirror of
https://github.com/element-hq/synapse
synced 2024-09-05 14:10:06 +00:00
Comment
This commit is contained in:
parent
f83ac78201
commit
a8f96c63aa
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ class Filter(object):
|
||||||
else:
|
else:
|
||||||
sender = event.get("sender", None)
|
sender = event.get("sender", None)
|
||||||
if not sender:
|
if not sender:
|
||||||
# Presence events have their 'sender' in content.user_id
|
# Presence events had their 'sender' in content.user_id, but are
|
||||||
|
# now handled above. We don't know if anything else uses this
|
||||||
|
# form. TODO: Check this and probably remove it.
|
||||||
content = event.get("content")
|
content = event.get("content")
|
||||||
# account_data has been allowed to have non-dict content, so
|
# account_data has been allowed to have non-dict content, so
|
||||||
# check type first
|
# check type first
|
||||||
|
|
Loading…
Reference in a new issue