Fix unable to unset status_msg from other clients

This commit is contained in:
vslg 2020-07-17 08:59:43 -03:00 committed by miruka
parent dc24ee5d9d
commit 9b9cbcb23c

View File

@ -758,7 +758,8 @@ class NioCallbacks:
not presence.status_msg and
account.status_msg and
ev.user_id in self.client.backend.clients and
account.presence != Presence.State.echo_invisible
account.presence != Presence.State.echo_invisible and
presence.presence == Presence.State.offline
):
asyncio.ensure_future(
self.client.backend.clients[ev.user_id].set_presence(