# HG changeset patch # User Goffi # Date 1526061966 -7200 # Node ID 57c8c155192f8060fee33b06b0f3a619485a8a50 # Parent 0112c1f7dcf0a7c8cb71be8688f852c33522ed30 quick frontend (app): avoid resource locking on new message diff -r 0112c1f7dcf0 -r 57c8c155192f sat_frontends/quick_frontend/quick_app.py --- a/sat_frontends/quick_frontend/quick_app.py Fri May 11 18:20:39 2018 +0200 +++ b/sat_frontends/quick_frontend/quick_app.py Fri May 11 20:06:06 2018 +0200 @@ -535,6 +535,9 @@ 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)