Fix not being able to unset status_msg

This commit is contained in:
vslg 2020-07-16 19:25:02 -03:00
parent d57414c06c
commit 27745bacca

View File

@ -1376,6 +1376,8 @@ class MatrixClient(nio.AsyncClient):
account.save_presence = False account.save_presence = False
if set_status_msg: if set_status_msg:
account.status_msg = status_msg
await super().set_presence( await super().set_presence(
"offline" if presence == "invisible" else presence, "offline" if presence == "invisible" else presence,
status_msg, status_msg,