80col ocd

This commit is contained in:
William Casarin 2022-11-20 08:37:03 -08:00
parent 854e7f480c
commit 4fd24c0414

View file

@ -246,16 +246,18 @@ function process_deletion_event(model, ev)
if (tag.length >= 2 && tag[0] === "e") { if (tag.length >= 2 && tag[0] === "e") {
const evid = tag[1] const evid = tag[1]
// we've already recorded this one as a valid deleted event // we've already recorded this one as a valid deleted
// we can just ignore it // event we can just ignore it
if (model.deleted[evid]) if (model.deleted[evid])
continue continue
let ds = model.deletions[evid] = (model.deletions[evid] || new Set()) let ds = model.deletions[evid] =
(model.deletions[evid] || new Set())
// add the deletion event id to the deletion set of this event // add the deletion event id to the deletion set of
// we will use this to determine if this event is valid later in // this event we will use this to determine if this
// case we don't have the deleted event yet. // event is valid later in case we don't have the
// deleted event yet.
ds.add(ev.id) ds.add(ev.id)
} }
} }