Fix hidden items cut-off at 100 items

This commit is contained in:
MM20 2023-10-06 14:39:27 +02:00
parent f56890db6b
commit d4b5f54a3e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class SearchVM : ViewModel(), KoinComponent {
private val hiddenItemKeys = searchableRepository
.getKeys(
hidden = true,
limit = 9999,
)
.shareIn(viewModelScope, SharingStarted.Eagerly, replay = 1)

View File

@ -171,6 +171,7 @@ class CalendarWidgetVM : ViewModel(), KoinComponent {
searchableRepository.getKeys(
includeTypes = listOf(CalendarEvent.Domain),
hidden = true,
limit = 9999,
).collectLatest { hidden ->
upcomingEvents = events.filter { !hidden.contains(it.key) }
}