mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-06 16:06:52 +00:00
None check
This commit is contained in:
parent
8e254862f4
commit
e55291ce5e
1 changed files with 2 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue