summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-02-18 10:12:12 +0000
committerErik Johnston <erik@matrix.org>2016-02-18 10:12:12 +0000
commit8351538873ff9f43122756c83beeff0bee5375be (patch)
treea13ce17d184618c5c98a5578faa1f50f97355cc2
parentPrefix TS fields with _ts (diff)
downloadsynapse-8351538873ff9f43122756c83beeff0bee5375be.tar.xz
PEP8
-rw-r--r--synapse/handlers/presence.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index d296953651..4b3d037453 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -252,9 +252,9 @@ class PresenceHandler(BaseHandler):
                 )
 
             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(
-                    currently_active=currently_active,
+                    currently_active=active,
                 )
 
             # Check whether the change was something worth notifying about