This commit is contained in:
2026-02-17 16:59:21 +03:00
parent 7b40f336cd
commit 341d128099

View File

@@ -52,10 +52,8 @@ class ScheduleRepositoryImpl @Inject constructor(
return@flow
}
}
val updated: ScheduleEntity = local.observeSchedule(key).filterNotNull().first()
emit(DataResult.Data(updated, refreshedFromNetwork = true))
val refreshedFromNetwork = cached?.timestamp != updated.timestamp
emit(DataResult.Data(updated, refreshedFromNetwork))
}
}