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.
This commit is contained in:
Goffi 2018-12-27 11:40:04 +01:00
commit 575b5dd126

View file

@ -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)