changeset 2632:96911768b0f3

quick_frontend (chat): create target in cache if it is not found, avoiding an exception
author Goffi <goffi@goffi.org>
date Mon, 02 Jul 2018 08:54:57 +0200
parents a381186e2398
children f3bbb6822ab3
files sat_frontends/quick_frontend/quick_chat.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py	Mon Jul 02 08:53:29 2018 +0200
+++ b/sat_frontends/quick_frontend/quick_chat.py	Mon Jul 02 08:54:57 2018 +0200
@@ -500,7 +500,7 @@
 
         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