summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-02-12 19:11:52 +0000
committerMatthew Hodgson <matthew@matrix.org>2015-02-12 21:01:29 +0000
commitf22646efcc3d3c5c7fc0d7797de2675e1a794dd0 (patch)
tree41982dfe045987b88d8a2e64ed736b000fd82ad3 /synapse/handlers/message.py
parentMerge pull request #70 from matrix-org/exception-fixes (diff)
downloadsynapse-f22646efcc3d3c5c7fc0d7797de2675e1a794dd0.tar.xz
Only attempt to fetch presence state of JOINed members in room initialSync (SYN-202)
Diffstat (limited to '')
-rw-r--r--synapse/handlers/message.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 3355adefcf..c6d6188d9d 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -372,6 +372,7 @@ class MessageHandler(BaseHandler):
         room_members = [
             m for m in current_state.values()
             if m.type == EventTypes.Member
+                and m.content["membership"] == Membership.JOIN
         ]
 
         presence_handler = self.hs.get_handlers().presence_handler