changeset 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 edd230651138
children a58e380c1c37
files sat_frontends/quick_frontend/quick_chat.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)