Fix not being able to unset status_msg
This commit is contained in:
parent
d57414c06c
commit
27745bacca
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user