Commit f261b495 authored by André's avatar André
Browse files

Contacts: Don't delete list while reading it

parent b43f5bc6
Pipeline #5615 passed with stages
in 2 minutes and 45 seconds
...@@ -670,7 +670,7 @@ def change_contact_jid(self, old_jid, new_jid): ...@@ -670,7 +670,7 @@ def change_contact_jid(self, old_jid, new_jid):
for _contact in self._contacts[old_jid]: for _contact in self._contacts[old_jid]:
_contact.jid = new_jid _contact.jid = new_jid
self._contacts[new_jid].append(_contact) self._contacts[new_jid].append(_contact)
del self._contacts[old_jid] del self._contacts[old_jid]
def get_combined_chatstate(self, jid): def get_combined_chatstate(self, jid):
if jid not in self._contacts: if jid not in self._contacts:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment