Fix / crash on logout

cannot access deleted object from delete
This commit is contained in:
Valere 2019-05-20 13:58:45 +02:00
parent 70c4b7528d
commit 2da4823e33

View File

@ -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) if (hasChange)
postSnapshot() postSnapshot()
} }