quick_frontend (chat): create target in cache if it is not found, avoiding an exception

This commit is contained in:
Goffi 2018-07-02 08:54:57 +02:00
commit c1defc005d

View file

@ -500,7 +500,7 @@ class QuickChat(quick_widgets.QuickWidget):
if self.type == C.CHAT_ONE2ONE:
special = self.host.contact_lists[self.profile].getCache(
self.target, C.CONTACT_SPECIAL
self.target, C.CONTACT_SPECIAL, create_if_not_found=True
)
if special == C.CONTACT_SPECIAL_GROUP:
# we have a private conversation