Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Mar 15, 2017
1 parent f83ac78 commit a8f96c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/api/filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ def check(self, event):
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
Expand Down

0 comments on commit a8f96c6

Please sign in to comment.