Remove deduplication logic for remote photos

This commit is contained in:
Vishnu Mohandas 2020-05-26 02:20:40 +05:30
parent bd049d00dd
commit 9e599af31e

View file

@ -133,7 +133,7 @@ class _GalleryState extends State<Gallery> {
void _deduplicatePhotos() {
for (int index = 1; index < _photos.length; index++) {
final current = _photos[index], previous = _photos[index - 1];
if (current.localId == previous.localId) {
if (current.localId != null && current.localId == previous.localId) {
_photos.removeAt(index);
index--;
}