quick frontend(chat): use bare jid for getEncryptionState, and skip if for group chat
This commit is contained in:
parent
8e70237d20
commit
38783d2c1b
1 changed files with 3 additions and 1 deletions
|
|
@ -567,7 +567,9 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
Once state is retrieved, default messageEncryptionStarted will be called if
|
||||
suitable
|
||||
"""
|
||||
self.host.bridge.messageEncryptionGet(unicode(self.target), self.profile,
|
||||
if self.type == C.CHAT_GROUP:
|
||||
return
|
||||
self.host.bridge.messageEncryptionGet(unicode(self.target.bare), self.profile,
|
||||
callback=self.messageEncryptionGetCb,
|
||||
errback=self.messageEncryptionGetEb)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue