diff options
Diffstat (limited to 'synapse/storage/presence.py')
-rw-r--r-- | synapse/storage/presence.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/storage/presence.py b/synapse/storage/presence.py index da40c0454c..0d628a3c8d 100644 --- a/synapse/storage/presence.py +++ b/synapse/storage/presence.py @@ -35,16 +35,14 @@ class PresenceStore(SQLBaseStore): return self._simple_select_one( table="presence", keyvalues={"user_id": user_localpart}, - retcols=["presence", "status_msg", "mtime"], + retcols=["presence", "status_msg", "last_active"], ) def set_presence_state(self, user_localpart, new_state): return self._simple_update_one( table="presence", keyvalues={"user_id": user_localpart}, - updatevalues={"presence": new_state["presence"], - "status_msg": new_state["status_msg"], - "mtime": self._clock.time_msec()}, + updatevalues=new_state, retcols=["presence"], ) |