Upgrade libCwtch-go + Fix Model merge issue

This commit is contained in:
Sarah Jamie Lewis 2021-09-30 13:29:52 -07:00
parent efbf7f5bff
commit 9556150c05
2 changed files with 5 additions and 6 deletions

View File

@ -1 +1 @@
v1.2.1-7-g1d18559-2021-09-30-17-39
v1.3.0-2021-09-30-20-24

View File

@ -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;