1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-21 12:34:51 +01:00

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 {
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())
}
}