delete child if parent is deleted

This commit is contained in:
Kevin Jahns
2017-10-26 20:53:17 +02:00
parent 74f9ceab01
commit 5cf8d20cf6
6 changed files with 32 additions and 19 deletions

View File

@@ -196,6 +196,9 @@ export default class Item {
right._left = this
}
}
if (parent._deleted) {
this._delete(y, false)
}
y.os.put(this)
transactionTypeChanged(y, parent, parentSub)
if (this._id.user !== RootFakeUserID) {
@@ -205,7 +208,6 @@ export default class Item {
if (y.persistence !== null) {
y.persistence.saveOperations(this)
}
y.ds.applyMissingDeletesOnStruct(this)
}
}
_toBinary (encoder) {