comparison cagou/plugins/plugin_wid_chat.py @ 489:8f3cb8cd84d6

plugin (chat): fix `fileSend` call
author Goffi <goffi@goffi.org>
date Fri, 07 Apr 2023 15:22:31 +0200
parents 3c9ba4a694ef
children 962d17c4078c
comparison
equal deleted inserted replaced
488:beedff600d2b 489:8f3cb8cd84d6
1071 # MUC 1071 # MUC
1072 else: 1072 else:
1073 jid_ = self.target 1073 jid_ = self.target
1074 if not jid_.resource: 1074 if not jid_.resource:
1075 jid_ = G.host.contact_lists[self.profile].getFullJid(jid_) 1075 jid_ = G.host.contact_lists[self.profile].getFullJid(jid_)
1076 G.host.bridge.fileSend(str(jid_), str(file_path), "", "", {}, 1076 G.host.bridge.fileSend(str(jid_), str(file_path), "", "", "",
1077 profile=self.profile) 1077 profile=self.profile)
1078 # TODO: notification of sending/failing 1078 # TODO: notification of sending/failing
1079 else: 1079 else:
1080 raise log.error("transfer of type {} are not handled".format(transfer_type)) 1080 raise log.error("transfer of type {} are not handled".format(transfer_type))
1081 1081