From 89cabba3e0decc55e551364ff7acc0649fa8a160 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Tue, 19 Aug 2014 14:48:05 +0100 Subject: [PATCH] Don't delete OFFLINE users from the presence cache, so we can report on their offline mtime --- synapse/handlers/presence.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 7e725d102..a2152c99c 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)