mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Fix / crash on logout
cannot access deleted object from delete
This commit is contained in:
parent
70c4b7528d
commit
2da4823e33
1 changed files with 0 additions and 12 deletions
|
@ -157,18 +157,6 @@ internal class DefaultTimeline(
|
|||
}
|
||||
}
|
||||
}
|
||||
changeSet.deletions?.forEach {
|
||||
val eventRelations = collection[it]
|
||||
if (eventRelations != null) {
|
||||
builtEventsIdMap[eventRelations.eventId]?.let { builtIndex ->
|
||||
//Update the relation of existing event
|
||||
builtEvents[builtIndex]?.let { te ->
|
||||
builtEvents[builtIndex] = te.copy(annotations = null)
|
||||
hasChange = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hasChange)
|
||||
postSnapshot()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue