Mercurial > libervia-desktop-kivy
comparison src/cagou/plugins/plugin_wid_chat.py @ 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 | f0291755b07c |
children | c498178d8122 |
comparison
equal
deleted
inserted
replaced
119:1bbbe26846f4 | 120:51e804dbf608 |
---|---|
146 def otr_start(self): | 146 def otr_start(self): |
147 self.dismiss() | 147 self.dismiss() |
148 G.host.launchMenu( | 148 G.host.launchMenu( |
149 C.MENU_SINGLE, | 149 C.MENU_SINGLE, |
150 (u"otr", u"start/refresh"), | 150 (u"otr", u"start/refresh"), |
151 {u'jid': self.chat.target}, | 151 {u'jid': unicode(self.chat.target)}, |
152 None, | 152 None, |
153 C.NO_SECURITY_LIMIT, | 153 C.NO_SECURITY_LIMIT, |
154 self.chat.profile | 154 self.chat.profile |
155 ) | 155 ) |
156 | 156 |
157 def otr_end(self): | 157 def otr_end(self): |
158 self.dismiss() | 158 self.dismiss() |
159 G.host.launchMenu( | 159 G.host.launchMenu( |
160 C.MENU_SINGLE, | 160 C.MENU_SINGLE, |
161 (u"otr", u"end session"), | 161 (u"otr", u"end session"), |
162 {u'jid': self.chat.target}, | 162 {u'jid': unicode(self.chat.target)}, |
163 None, | 163 None, |
164 C.NO_SECURITY_LIMIT, | 164 C.NO_SECURITY_LIMIT, |
165 self.chat.profile | 165 self.chat.profile |
166 ) | 166 ) |
167 | 167 |
168 def otr_authenticate(self): | 168 def otr_authenticate(self): |
169 self.dismiss() | 169 self.dismiss() |
170 G.host.launchMenu( | 170 G.host.launchMenu( |
171 C.MENU_SINGLE, | 171 C.MENU_SINGLE, |
172 (u"otr", u"authenticate"), | 172 (u"otr", u"authenticate"), |
173 {u'jid': self.chat.target}, | 173 {u'jid': unicode(self.chat.target)}, |
174 None, | 174 None, |
175 C.NO_SECURITY_LIMIT, | 175 C.NO_SECURITY_LIMIT, |
176 self.chat.profile | 176 self.chat.profile |
177 ) | 177 ) |
178 | 178 |