changeset 946:fe181994246a

core(memory): fixed last resource
author Goffi <goffi@goffi.org>
date Fri, 28 Mar 2014 19:11:00 +0100
parents 899dc9cd0f35
children 61c4755f0394
files src/memory/memory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):