comparison src/cagou/plugins/plugin_wid_chat.py @ 121:c498178d8122

chat: fixed file sending: the issue was the same as for OTR, jid.JID must be casted to unicode before crossing pb bridge.
author Goffi <goffi@goffi.org>
date Tue, 31 Jan 2017 23:11:49 +0100
parents 51e804dbf608
children dcd6fbb3f010
comparison
equal deleted inserted replaced
120:51e804dbf608 121:c498178d8122
389 # TODO: show an error dialog to user, or better hide the send button for MUC 389 # TODO: show an error dialog to user, or better hide the send button for MUC
390 else: 390 else:
391 jid_ = self.target 391 jid_ = self.target
392 if not jid_.resource: 392 if not jid_.resource:
393 jid_ = G.host.contact_lists[self.profile].getFullJid(jid_) 393 jid_ = G.host.contact_lists[self.profile].getFullJid(jid_)
394 G.host.bridge.fileSend(jid_, file_path, "", "", profile=self.profile) 394 G.host.bridge.fileSend(unicode(jid_), file_path, "", "", profile=self.profile)
395 # TODO: notification of sending/failing 395 # TODO: notification of sending/failing
396 else: 396 else:
397 raise log.error(u"transfer of type {} are not handled".format(transfer_type)) 397 raise log.error(u"transfer of type {} are not handled".format(transfer_type))
398 398
399 399