From 575b5dd126baf8f7b88de808cdff0a7bd9512ad2 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 27 Dec 2018 11:40:04 +0100 Subject: [PATCH] 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. --- sat_frontends/quick_frontend/quick_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat_frontends/quick_frontend/quick_chat.py b/sat_frontends/quick_frontend/quick_chat.py index 122128a9..bd40c5fd 100644 --- a/sat_frontends/quick_frontend/quick_chat.py +++ b/sat_frontends/quick_frontend/quick_chat.py @@ -564,7 +564,7 @@ class QuickChat(quick_widgets.QuickWidget): 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)