comparison 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
comparison
equal deleted inserted replaced
2729:edd230651138 2730:b4c0a5bec729
562 """Retrieve encryption state with current target. 562 """Retrieve encryption state with current target.
563 563
564 Once state is retrieved, default messageEncryptionStarted will be called if 564 Once state is retrieved, default messageEncryptionStarted will be called if
565 suitable 565 suitable
566 """ 566 """
567 self.host.bridge.messageEncryptionGet(self.target, self.profile, 567 self.host.bridge.messageEncryptionGet(unicode(self.target), self.profile,
568 callback=self.messageEncryptionGetCb, 568 callback=self.messageEncryptionGetCb,
569 errback=self.messageEncryptionGetEb) 569 errback=self.messageEncryptionGetEb)
570 570
571 571
572 def messageNew(self, uid, timestamp, from_jid, to_jid, msg, subject, type_, extra, 572 def messageNew(self, uid, timestamp, from_jid, to_jid, msg, subject, type_, extra,