diff src/memory/memory.py @ 946:fe181994246a

core(memory): fixed last resource
author Goffi <goffi@goffi.org>
date Fri, 28 Mar 2014 19:11:00 +0100
parents e1842ebcb2f3
children 301b342c697a
line wrap: on
line diff
--- a/src/memory/memory.py	Fri Mar 28 18:19:29 2014 +0100
+++ b/src/memory/memory.py	Fri Mar 28 19:11:00 2014 +0100
@@ -329,7 +329,7 @@
         entity_data = self._getEntitiesData(entity_jid, profile)[entity_jid]
         resource = entity_jid.resource
         if resource:
-            entity_data[C.ENTITY_LAST_RESOURCE] = resource
+            self.updateEntityData(entity_jid.userhostJID(), C.ENTITY_LAST_RESOURCE, resource, profile)
         entity_data.setdefault("presence", {})[resource or ''] = (show, priority, statuses)
 
     def _getEntitiesData(self, entity_jid, profile):