From 1745b6294ef9b976d3d2252625980dd28a809c63 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 30 Oct 2024 17:59:07 +0100 Subject: [PATCH] Remove remainder of obsolete file transfer protocol. --- static/protocol.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/protocol.js b/static/protocol.js index 669ed42..2de9d26 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -1812,7 +1812,7 @@ TransferredFile.prototype.cancel = function(data) { return; if(f.state !== '' && f.state !== 'done' && f.state !== 'cancelled') { let m = { - type: f.up ? 'cancel' : 'reject', + type: 'cancel', id: f.id, }; if(data) @@ -2232,6 +2232,7 @@ ServerConnection.prototype.fileTransfer = function(id, username, message) { } case 'upice': case 'downice': + case 'reject': case 'abort': { let f = sc.getTransferredFile(id, message.id); if(f)