forked from github/wulkanowy-mirror
fix: bad attendance always visible
This commit is contained in:
parent
43a01e4e04
commit
6e751c83f6
@ -56,7 +56,9 @@ class AttendanceRepository @Inject constructor(
|
||||
it.isEmpty() || forceRefresh || isExpired
|
||||
},
|
||||
query = {
|
||||
val badAttendanceHidden = false
|
||||
val badAttendanceHidden = preferencesRepository
|
||||
.selectedHiddenSettingTiles
|
||||
.contains(DashboardItem.HiddenSettingTile.NOTES)
|
||||
|
||||
if (badAttendanceHidden) {
|
||||
attendanceDb.loadAllCensored(
|
||||
@ -75,7 +77,9 @@ class AttendanceRepository @Inject constructor(
|
||||
}
|
||||
},
|
||||
fetch = {
|
||||
val badAttendanceHidden = false
|
||||
val badAttendanceHidden = preferencesRepository
|
||||
.selectedHiddenSettingTiles
|
||||
.contains(DashboardItem.HiddenSettingTile.NOTES)
|
||||
|
||||
val lessons = withContext(Dispatchers.IO) {
|
||||
timetableDb.load(
|
||||
|
Loading…
Reference in New Issue
Block a user