Timeline: don't remove annotations and read receipts when deleting timeline event

This commit is contained in:
ganfra 2021-11-03 11:44:01 +01:00
parent e4896cad38
commit d42a2e69ae

View file

@ -46,7 +46,5 @@ internal fun TimelineEventEntity.deleteOnCascade(canDeleteRoot: Boolean) {
if (canDeleteRoot) {
root?.deleteFromRealm()
}
annotations?.deleteOnCascade()
readReceipts?.deleteOnCascade()
deleteFromRealm()
}