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

View file

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