From 7ddd65a081f661619855265d15669f8187161e0b Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 5 Jun 2022 13:10:21 +0200 Subject: [PATCH] [mirotalksfu] - file drag-and-drop improvements --- public/js/RoomClient.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index eb209623..1f80c6ba 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -2029,6 +2029,10 @@ class RoomClient { userLog('warning', 'You cannot send files to yourself.', 'top-end'); return; } + if (this.sendInProgress) { + userLog('warning', 'Please wait for the previous file to be sent.', 'top-end'); + return; + } if (e.dataTransfer.items && e.dataTransfer.items.length > 1) { userLog('warning', 'Please drag and drop a single file.', 'top-end'); return;