Fix filtering timelines (#2214)

This commit is contained in:
Levi Bard 2021-06-30 20:11:14 +02:00 committed by GitHub
parent 2cc53d6772
commit 59b977c57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -451,9 +451,9 @@ class TimelineViewModel @Inject constructor(
} else {
throw HttpException(response)
}
}
}.toMutableList()
filterStatuses(statuses.toMutableList())
filterStatuses(statuses)
return statuses
}
@ -530,7 +530,7 @@ class TimelineViewModel @Inject constructor(
if (statuses.size > 1) {
clearPlaceholdersForResponse(mutableStatusResponse)
this.statuses.clear()
this.statuses.addAll(statuses.toViewData())
this.statuses.addAll(mutableStatusResponse.toViewData())
}
}