mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-21 20:35:00 -05:00
PEP8
This commit is contained in:
parent
112283e230
commit
8351538873
@ -252,9 +252,9 @@ class PresenceHandler(BaseHandler):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if new_state.state == PresenceState.ONLINE:
|
if new_state.state == PresenceState.ONLINE:
|
||||||
currently_active = now - new_state.last_active_ts < LAST_ACTIVE_GRANULARITY
|
active = now - new_state.last_active_ts < LAST_ACTIVE_GRANULARITY
|
||||||
new_state = new_state.copy_and_replace(
|
new_state = new_state.copy_and_replace(
|
||||||
currently_active=currently_active,
|
currently_active=active,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Check whether the change was something worth notifying about
|
# Check whether the change was something worth notifying about
|
||||||
|
Loading…
Reference in New Issue
Block a user