Mercurial > libervia-backend
diff sat_frontends/quick_frontend/quick_chat.py @ 2839:76f714b12d21
quick frontend(chat): use bare jid for getEncryptionState, and skip if for group chat
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Mar 2019 20:59:29 +0100 |
parents | 4a05e67a8025 |
children | c055a3a4ecb0 |
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py Sun Mar 03 19:18:45 2019 +0100 +++ b/sat_frontends/quick_frontend/quick_chat.py Sun Mar 03 20:59:29 2019 +0100 @@ -567,7 +567,9 @@ 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)