summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-03-15 14:50:33 +0000
committerErik Johnston <erik@matrix.org>2017-03-15 15:01:39 +0000
commite892457a03787e844ba291acc9bfa9455e854145 (patch)
treefe65d5d19df09f452e6f061c2ec26e5adec91c0c /synapse/api
parentRemove unused import (diff)
downloadsynapse-e892457a03787e844ba291acc9bfa9455e854145.tar.xz
Comment
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/filtering.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py
index 63d5c75f43..6cadb5645d 100644
--- a/synapse/api/filtering.py
+++ b/synapse/api/filtering.py
@@ -254,6 +254,9 @@ class Filter(object):
         Returns:
             bool: True if the event matches
         """
+        # We usually get the full "events" as dictionaries coming through,
+        # except for presence which actually gets passed around as its own
+        # namedtuple type.
         if isinstance(event, UserPresenceState):
             sender = event.user_id
             room_id = None