Be invisible on startup, not echo_invisible
If our presence is invisible from the first sync, we'll never receive a presence event telling us so. The server just knows from the beginning, so show our local presence as echo instead of echo_invisible (which causes the half-opacity presence orb)
This commit is contained in:
parent
c1f5605c1c
commit
02b4bddce5
@ -326,7 +326,7 @@ class MatrixClient(nio.AsyncClient):
|
||||
account = self.models["accounts"][user_id]
|
||||
self._presence = "offline" if state == "invisible" else state
|
||||
|
||||
if state != "offline":
|
||||
if state in ("online", "unavailable"):
|
||||
state = f"echo_{state}"
|
||||
|
||||
account.set_fields(
|
||||
|
Loading…
Reference in New Issue
Block a user