From 38783d2c1b9b91ad5ecdd7da033636b5782d511a Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 3 Mar 2019 20:59:29 +0100 Subject: [PATCH] quick frontend(chat): use bare jid for getEncryptionState, and skip if for group chat --- sat_frontends/quick_frontend/quick_chat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sat_frontends/quick_frontend/quick_chat.py b/sat_frontends/quick_frontend/quick_chat.py index ac3ffec0..b5dbb2aa 100644 --- a/sat_frontends/quick_frontend/quick_chat.py +++ b/sat_frontends/quick_frontend/quick_chat.py @@ -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)