changeset 120:51e804dbf608

chat: fixed OTR calls: D-Bus bridge is converting jid.JID to unicode, but pb is not, resulting in a issue when calling OTR menus. This commit fixes it.
author Goffi <goffi@goffi.org>
date Tue, 31 Jan 2017 22:51:29 +0100
parents 1bbbe26846f4
children c498178d8122
files src/cagou/plugins/plugin_wid_chat.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.py	Tue Jan 31 22:32:31 2017 +0100
+++ b/src/cagou/plugins/plugin_wid_chat.py	Tue Jan 31 22:51:29 2017 +0100
@@ -148,7 +148,7 @@
         G.host.launchMenu(
             C.MENU_SINGLE,
             (u"otr", u"start/refresh"),
-            {u'jid': self.chat.target},
+            {u'jid': unicode(self.chat.target)},
             None,
             C.NO_SECURITY_LIMIT,
             self.chat.profile
@@ -159,7 +159,7 @@
         G.host.launchMenu(
             C.MENU_SINGLE,
             (u"otr", u"end session"),
-            {u'jid': self.chat.target},
+            {u'jid': unicode(self.chat.target)},
             None,
             C.NO_SECURITY_LIMIT,
             self.chat.profile
@@ -170,7 +170,7 @@
         G.host.launchMenu(
             C.MENU_SINGLE,
             (u"otr", u"authenticate"),
-            {u'jid': self.chat.target},
+            {u'jid': unicode(self.chat.target)},
             None,
             C.NO_SECURITY_LIMIT,
             self.chat.profile