mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-22 15:56:17 -04:00
Add 'files-sent' event
This commit is contained in:
parent
b5987cf017
commit
58b7f6bb7c
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue