mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-25 01:06:17 -04:00
Remove limit for sending to iOS devices (fixes #211)
This commit is contained in:
parent
6de97e7ff1
commit
88739107e4
18 changed files with 0 additions and 26 deletions
|
@ -586,12 +586,6 @@ class Peer {
|
|||
this._sendMessage({type: 'files-transfer-response', accepted: false});
|
||||
return;
|
||||
}
|
||||
if (window.iOS && request.totalSize >= 200*1024*1024) {
|
||||
// iOS Safari can only put 400MB at once to memory.
|
||||
// Request to send them in chunks of 200MB instead:
|
||||
this._sendMessage({type: 'files-transfer-response', accepted: false, reason: 'ios-memory-limit'});
|
||||
return;
|
||||
}
|
||||
|
||||
this._pendingRequest = request;
|
||||
|
||||
|
@ -743,9 +737,6 @@ class Peer {
|
|||
if (!message.accepted) {
|
||||
Events.fire('set-progress', {peerId: this._peerId, progress: 1, status: 'wait'});
|
||||
this._filesRequested = null;
|
||||
if (message.reason === 'ios-memory-limit') {
|
||||
Events.fire('notify-user', Localization.getTranslation("notifications.ios-memory-limit"));
|
||||
}
|
||||
return;
|
||||
}
|
||||
Events.fire('file-transfer-accepted');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue