mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 03:49:04 +03:00
Avoid erasing all cache
This commit is contained in:
parent
76ade2957e
commit
3e97503220
1 changed files with 4 additions and 1 deletions
|
@ -142,8 +142,11 @@ class TimelineEventController(private val dateFormatter: TimelineDateFormatter,
|
|||
if (this.eventIdToHighlight != eventIdToHighlight) {
|
||||
// Clear cache to force a refresh
|
||||
for (i in 0 until modelCache.size) {
|
||||
if (modelCache[i]?.eventId == eventIdToHighlight
|
||||
|| modelCache[i]?.eventId == this.eventIdToHighlight) {
|
||||
modelCache[i] = null
|
||||
}
|
||||
}
|
||||
this.eventIdToHighlight = eventIdToHighlight
|
||||
|
||||
requestModelBuild()
|
||||
|
|
Loading…
Reference in a new issue