[mob][photos] Remove unneeded condition

This commit is contained in:
laurenspriem
2025-03-14 14:15:04 +05:30
parent 71399e01f0
commit fc79d3d967

View File

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