Fix unable to unset status_msg from other clients
This commit is contained in:
parent
dc24ee5d9d
commit
9b9cbcb23c
|
@ -755,10 +755,11 @@ class NioCallbacks:
|
||||||
|
|
||||||
# Set status_msg if none is set on the server and we have one
|
# Set status_msg if none is set on the server and we have one
|
||||||
if (
|
if (
|
||||||
not presence.status_msg and
|
not presence.status_msg and
|
||||||
account.status_msg and
|
account.status_msg and
|
||||||
ev.user_id in self.client.backend.clients 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(
|
asyncio.ensure_future(
|
||||||
self.client.backend.clients[ev.user_id].set_presence(
|
self.client.backend.clients[ev.user_id].set_presence(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user