Remove utils.sendFile(), useless wrapper

This commit is contained in:
miruka
2020-08-03 01:05:19 -04:00
parent 09ae0d7776
commit 040e966d27
3 changed files with 6 additions and 10 deletions

View File

@@ -17,10 +17,10 @@ HFileDialogOpener {
for (const file of files) {
const path = Qt.resolvedUrl(file).replace(/^file:/, "")
utils.sendFile(userId, roomId, path, () => {
py.callClientCoro(userId, "send_file", [roomId, path], () => {
if (destroyWhenDone) destroy()
},
(type, args, error, traceback) => {
}, (type, args, error, traceback) => {
console.error(`python:\n${traceback}`)
if (destroyWhenDone) destroy()
})