improve filters v1 loading (#4545)

A user still on Mastodon 3 complained that since my change in
https://github.com/tuskyapp/Tusky/pull/4539 the timeline reloads on
starting Tusky. Well, we need to do some reloading of the timeline after
loading the v1 filters or they won't work. Changing the `fullReload` to
`invalidate` improves the situation by not loading everything from the
network again (just the database) but there is still some noticeable
loading.
(I'm not willing to invest any more time to support these old instances)
This commit is contained in:
Konrad Pozniak 2024-07-06 18:32:35 +02:00 committed by GitHub
parent 326676a9c6
commit a3bdd894f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ abstract class TimelineViewModel(
is FilterUpdatedEvent -> {
if (filterContextMatchesKind(this@TimelineViewModel.kind, event.filterContext)) {
filterModel.init(kind.toFilterKind())
fullReload()
invalidate()
}
}
}