diff --git a/LIBCWTCH-GO.version b/LIBCWTCH-GO.version index c0a8e890..fc6ed486 100644 --- a/LIBCWTCH-GO.version +++ b/LIBCWTCH-GO.version @@ -1 +1 @@ -v1.2.1-7-g1d18559-2021-09-30-17-39 +v1.3.0-2021-09-30-20-24 \ No newline at end of file diff --git a/lib/model.dart b/lib/model.dart index ff781d90..f036be0f 100644 --- a/lib/model.dart +++ b/lib/model.dart @@ -382,11 +382,10 @@ class ProfileInfoState extends ChangeNotifier { void downloadMarkFinished(String fileKey, String finalPath) { if (!downloadActive(fileKey)) { - print("error: received download completion notice for unknown download " + fileKey); - } else { - this._downloads[fileKey]!.timeEnd = DateTime.now(); - this._downloads[fileKey]!.complete = true; - notifyListeners(); + // happens as a result of a CheckDownloadStatus call, + // invoked from a historical (timeline) download message + // so setting numChunks correctly shouldn't matter + this.downloadInit(fileKey, 1); } this._downloads[fileKey]!.timeEnd = DateTime.now(); this._downloads[fileKey]!.downloadedTo = finalPath;