Mercurial > libervia-backend
changeset 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 (2019-03-03) |
parents | 8018cf9aa55b |
children | 0f277708e2ae |
files | sat_frontends/quick_frontend/quick_chat.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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)