quick frontend (app): avoid resource locking on new message
This commit is contained in:
parent
da147c5cc7
commit
a6956d424a
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue