quick frontend(chat): use bare jid for getEncryptionState, and skip if for group chat

This commit is contained in:
Goffi 2019-03-03 20:59:29 +01:00
commit 38783d2c1b

View file

@ -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)