summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-15 16:01:01 +0000
committerErik Johnston <erik@matrix.org>2017-03-15 16:01:01 +0000
commita8f96c63aa7949b5410f1d77facb93169172cb12 (patch)
tree272a697640aaf3c919db0b63967908e89b8f16f5 /synapse/api
parentCache set of users whose presence the other user should see (diff)
downloadsynapse-a8f96c63aa7949b5410f1d77facb93169172cb12.tar.xz
Comment
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/filtering.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py
index 6cadb5645d..47f0cf0fa9 100644
--- a/synapse/api/filtering.py
+++ b/synapse/api/filtering.py
@@ -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