0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 12:23:48 +01:00

None check

This commit is contained in:
Erik Johnston 2015-08-18 11:17:37 +01:00
parent 8e254862f4
commit e55291ce5e

View file

@ -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"]