core(memory): fixed last resource

This commit is contained in:
Goffi 2014-03-28 19:11:00 +01:00
commit 56ed5f13a5

View file

@ -329,7 +329,7 @@ class Memory(object):
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):