Fix issue in recursively fetching diff in photos

This commit is contained in:
Vishnu Mohandas 2020-05-25 19:01:44 +05:30
parent 21a8fa8a41
commit 662692fbcf

View file

@ -111,7 +111,7 @@ class PhotoSyncManager {
await _storeDiff(diff, prefs);
PhotoRepository.instance.reloadPhotos();
}
if (diff.length < _diffLimit) {
if (diff == null || diff.length < _diffLimit) {
shouldFetchDiff = false;
}
}