forked from GitHub-Mirror/riotX-android
Fix / crash on logout
cannot access deleted object from delete
This commit is contained in:
parent
70c4b7528d
commit
2da4823e33
@ -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…
Reference in New Issue
Block a user