Fix reload after clearing timeline

This commit is contained in:
kyori19 2022-03-09 16:11:34 +09:00
parent 1abe28943c
commit e6c995103e
1 changed files with 1 additions and 2 deletions

View File

@ -255,10 +255,9 @@ class NetworkTimelineViewModel @Inject constructor(
}
override fun fullReload() {
nextKey = statusData.firstOrNull { it is StatusViewData.Concrete }?.asStatusOrNull()?.id?.inc()
statusData.clear()
nextKey = null
currentSource?.invalidate()
// FIXME: auto reload needed
}
suspend fun fetchStatusesForKind(