Fix contact not beeing found after room destroy

This commit is contained in:
Philipp Hörist 2018-09-01 12:44:14 +02:00
parent be96422a14
commit 7d723d7b98
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class Contacts():
self._contacts = {} self._contacts = {}
def add_contact(self, contact): def add_contact(self, contact):
if contact.jid not in self._contacts: if contact.jid not in self._contacts or contact.is_groupchat():
self._contacts[contact.jid] = [contact] self._contacts[contact.jid] = [contact]
return return
contacts = self._contacts[contact.jid] contacts = self._contacts[contact.jid]