0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-16 09:38:19 +02:00
This commit is contained in:
Erik Johnston 2017-03-15 16:01:01 +00:00
parent f83ac78201
commit a8f96c63aa

View file

@ -265,7 +265,9 @@ class Filter(object):
else:
sender = event.get("sender", None)
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")
# account_data has been allowed to have non-dict content, so
# check type first