Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Remove unneeded condition

laurenspriemfc79d3d9673d
diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/lib/services/memories_cache_service.dart
index bc0f6fe466..11ceaa521e 100644
--- a/mobile/lib/services/memories_cache_service.dart
+++ b/mobile/lib/services/memories_cache_service.dart
@@ -216,23 +216,9 @@ class MemoriesCacheService {
for (final oldMemory in oldCache.toShowMemories) {
if (oldMemory.isOld) {
if (oldMemory.type == MemoryType.people) {
- if (!peopleShownLogs.any(
- (person) =>
- (person.personID == oldMemory.personID) &&
- (person.peopleMemoryType == oldMemory.peopleMemoryType),
- )) {
peopleShownLogs.add(PeopleShownLog.fromOldCacheMemory(oldMemory));
- }
} else if (oldMemory.type == MemoryType.trips) {
- if (!tripsShownLogs.any(
- (trip) => isFileInsideLocationTag(
- oldMemory.location!,
- trip.location,
- 10.0,
- ),
- )) {
tripsShownLogs.add(TripsShownLog.fromOldCacheMemory(oldMemory));
- }
}
}
}