diff sat_frontends/quick_frontend/quick_chat.py @ 2730:b4c0a5bec729

quick frontend(chat): use unicode on jid.JID instance in self.host.bridge.messageEncryptionGet: jid.JID is causing trouble when going trough bridge (with pb bridge), this patch avoid it by using unicode.
author Goffi <goffi@goffi.org>
date Thu, 27 Dec 2018 11:40:04 +0100
parents e35a265ec174
children df2bc2e704bc
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py	Thu Dec 27 09:21:10 2018 +0100
+++ b/sat_frontends/quick_frontend/quick_chat.py	Thu Dec 27 11:40:04 2018 +0100
@@ -564,7 +564,7 @@
         Once state is retrieved, default messageEncryptionStarted will be called if
         suitable
         """
-        self.host.bridge.messageEncryptionGet(self.target, self.profile,
+        self.host.bridge.messageEncryptionGet(unicode(self.target), self.profile,
                                               callback=self.messageEncryptionGetCb,
                                               errback=self.messageEncryptionGetEb)