Browse Source

Fixed replace download file

Closes #780
master
Igor Zhukov 10 years ago
parent
commit
3d11748ea7
  1. 2
      app/js/lib/mtproto_wrapper.js

2
app/js/lib/mtproto_wrapper.js

@ -482,7 +482,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
startOffset = fileWriter.length; startOffset = fileWriter.length;
if (startOffset >= size) { if (startOffset >= size) {
if (toFileEntry) { if (toFileEntry) {
deferred.resolve(fileWriter.finalize()); deferred.resolve();
} else { } else {
deferred.resolve(cachedDownloads[fileName] = fileWriter.finalize()); deferred.resolve(cachedDownloads[fileName] = fileWriter.finalize());
} }

Loading…
Cancel
Save