From e786e1bd11524c0751ac0ff1e79f02437786117a Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 28 Apr 2023 16:57:00 +0200 Subject: [PATCH] Pass file transfer cancel message to callback. --- static/protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/protocol.js b/static/protocol.js index 3dfb3b3..59ab1ed 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -2170,7 +2170,7 @@ ServerConnection.prototype.fileTransfer = function(id, username, message) { console.error(`Unexpected ${message.type} for file transfer`); return; } - f.event('cancelled'); + f.event('cancelled', message.value || null); f.close(); break; }