# HG changeset patch # User Goffi # Date 1485899489 -3600 # Node ID 51e804dbf6084c03717edfc2cdd1d84c53d07d3f # Parent 1bbbe26846f44d2f38ad085e18d67f8dd2530eee 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. diff -r 1bbbe26846f4 -r 51e804dbf608 src/cagou/plugins/plugin_wid_chat.py --- 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