|
|
@ -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()); |
|
|
|
} |
|
|
|
} |
|
|
|