mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-28 10:20:39 +00:00
Merge pull request #114 from fm-sys/patch-1
Add 'files-sent' event used by 'Snapdrop & PairDrop for Android' app to support vibrations
This commit is contained in:
@@ -529,7 +529,7 @@ class Peer {
|
|||||||
this._abortTransfer();
|
this._abortTransfer();
|
||||||
}
|
}
|
||||||
|
|
||||||
// include for compatibility with Snapdrop for Android app
|
// include for compatibility with 'Snapdrop & PairDrop for Android' app
|
||||||
Events.fire('file-received', fileBlob);
|
Events.fire('file-received', fileBlob);
|
||||||
|
|
||||||
this._filesReceived.push(fileBlob);
|
this._filesReceived.push(fileBlob);
|
||||||
@@ -547,6 +547,7 @@ class Peer {
|
|||||||
if (!this._filesQueue.length) {
|
if (!this._filesQueue.length) {
|
||||||
this._busy = false;
|
this._busy = false;
|
||||||
Events.fire('notify-user', 'File transfer completed.');
|
Events.fire('notify-user', 'File transfer completed.');
|
||||||
|
Events.fire('files-sent'); // used by 'Snapdrop & PairDrop for Android' app
|
||||||
} else {
|
} else {
|
||||||
this._dequeueFile();
|
this._dequeueFile();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user