damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

commit 4fd24c041442f7a1c476c5508df9f96bf5cb9cc2
parent 854e7f480c64a9f15a4a229a4aebcc825430804e
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 20 Nov 2022 08:37:03 -0800

80col ocd

Diffstat:
Mweb/js/damus.js | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

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