From 58b7f6bb7cab637c38bc0d873a322cef02ce65f7 Mon Sep 17 00:00:00 2001 From: fm-sys <64581222+fm-sys@users.noreply.github.com> Date: Fri, 26 May 2023 09:52:17 +0200 Subject: [PATCH] Add 'files-sent' event --- public/scripts/network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/network.js b/public/scripts/network.js index ec448ac..517aea3 100644 --- a/public/scripts/network.js +++ b/public/scripts/network.js @@ -529,7 +529,7 @@ class Peer { this._abortTransfer(); } - // include for compatibility with Snapdrop for Android app + // include for compatibility with 'Snapdrop & PairDrop for Android' app Events.fire('file-received', fileBlob); this._filesReceived.push(fileBlob); @@ -547,6 +547,7 @@ class Peer { if (!this._filesQueue.length) { this._busy = false; Events.fire('notify-user', 'File transfer completed.'); + Events.fire('files-sent'); // used by 'Snapdrop & PairDrop for Android' app } else { this._dequeueFile(); }