mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 07:25:05 -04:00
Fix an invalid comparison of UserPresenceState
to str
(#14393)
This commit is contained in:
parent
d8cc86eff4
commit
618e4ab81b
5 changed files with 46 additions and 8 deletions
|
@ -478,7 +478,7 @@ class WorkerPresenceHandler(BasePresenceHandler):
|
|||
return _NullContextManager()
|
||||
|
||||
prev_state = await self.current_state_for_user(user_id)
|
||||
if prev_state != PresenceState.BUSY:
|
||||
if prev_state.state != PresenceState.BUSY:
|
||||
# We set state here but pass ignore_status_msg = True as we don't want to
|
||||
# cause the status message to be cleared.
|
||||
# Note that this causes last_active_ts to be incremented which is not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue