Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f5ba835 authored by mitulsheth's avatar mitulsheth
Browse files

feat: Murena Workspace Login Part 1 of 10

parent 048f81c4
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class FavoritesLocalDataSource internal constructor(
        payload.lists.forEach { remote ->
            if (remote.isRoot && remote.id != rootList.id) return@forEach
            val existing = existingLists[remote.id]
            if (existing == null || remote.updatedAt >= existing.updatedAt) {
            if (existing == null || remote.updatedAt > existing.updatedAt) {
                savedListDao.upsertList(remote.toSavedList())
            }
        }
@@ -101,7 +101,7 @@ class FavoritesLocalDataSource internal constructor(
            .associateBy { it.id }
        payload.places.forEach { remote ->
            val existing = existingPlaces[remote.id]
            if (existing == null || remote.updatedAt >= existing.updatedAt) {
            if (existing == null || remote.updatedAt > existing.updatedAt) {
                savedPlaceDao.upsertPlace(remote.toSavedPlace())
            }
        }