core(memory): fixed last resource
This commit is contained in:
parent
5d634df2f7
commit
56ed5f13a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue