mirror of https://codeberg.org/pzp/pzp-db.git
dont add deleted msgs to the DBTangle
This commit is contained in:
parent
3f7d299559
commit
188d37fefc
|
@ -48,6 +48,7 @@ class DBTangle extends FeedV1.Tangle {
|
||||||
constructor(rootHash, recordsIter) {
|
constructor(rootHash, recordsIter) {
|
||||||
super(rootHash)
|
super(rootHash)
|
||||||
for (const rec of recordsIter) {
|
for (const rec of recordsIter) {
|
||||||
|
if (!rec.msg) continue
|
||||||
this.add(rec.hash, rec.msg)
|
this.add(rec.hash, rec.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue