From a6956d424a7b7ab2fca811af37be77a4b83d37c5 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 11 May 2018 20:06:06 +0200 Subject: [PATCH] quick frontend (app): avoid resource locking on new message --- sat_frontends/quick_frontend/quick_app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sat_frontends/quick_frontend/quick_app.py b/sat_frontends/quick_frontend/quick_app.py index 5cb3c6b1..92cb6290 100644 --- a/sat_frontends/quick_frontend/quick_app.py +++ b/sat_frontends/quick_frontend/quick_app.py @@ -535,6 +535,9 @@ class QuickApp(object): from_me = from_jid.bare == self.profiles[profile].whoami.bare target = to_jid if from_me else from_jid contact_list = self.contact_lists[profile] + if target.resource and not contact_list.isRoom(target.bare): + # we avoid resource locking, but we must keep resource for private MUC messages + target = target.bare # we want to be sure to have at least one QuickChat instance self.widgets.getOrCreateWidget(quick_chat.QuickChat, target, type_=C.CHAT_ONE2ONE, on_new_widget=None, profile=profile)