summary refs log tree commit diff
path: root/synapse/handlers/presence.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-08-19 14:48:05 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-08-19 14:51:15 +0100
commit89cabba3e0decc55e551364ff7acc0649fa8a160 (patch)
tree9bbb7162c28743754593debcc5af80650f23603b /synapse/handlers/presence.py
parentProofing (diff)
downloadsynapse-89cabba3e0decc55e551364ff7acc0649fa8a160.tar.xz
Don't delete OFFLINE users from the presence cache, so we can report on their offline mtime
Diffstat (limited to '')
-rw-r--r--synapse/handlers/presence.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py
index 7e725d1027..a2152c99cf 100644
--- a/synapse/handlers/presence.py
+++ b/synapse/handlers/presence.py
@@ -231,9 +231,6 @@ class PresenceHandler(BaseHandler):
         #   we don't have to do this all the time
         self.changed_presencelike_data(target_user, state)
 
-        if not now_online:
-            del self._user_cachemap[target_user]
-
     def changed_presencelike_data(self, user, state):
         statuscache = self._get_or_make_usercache(user)