summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 2b103b48bb..748432959e 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -290,6 +290,8 @@ class PresenceHandler(BaseHandler):
             )
 
             for local_part, state in states.items():
+                if stat is None:
+                    continue
                 res = {"presence": state["state"]}
                 if "status_msg" in state and state["status_msg"]:
                     res["status_msg"] = state["status_msg"]