feat: negentropy progress

This commit is contained in:
2024-10-25 14:57:12 +07:00
parent 055d73c829
commit 5ab2b1ae31
27 changed files with 769 additions and 663 deletions

View File

@@ -52,7 +52,11 @@ function Screen() {
if (rootId) {
if (reactions.has(rootId)) {
reactions.get(rootId).push(event);
const ev = reactions.get(rootId);
if (ev) {
ev.push(event);
}
} else {
reactions.set(rootId, [event]);
}
@@ -64,7 +68,11 @@ function Screen() {
if (rootId) {
if (zaps.has(rootId)) {
zaps.get(rootId).push(event);
const ev = zaps.get(rootId);
if (ev) {
ev.push(event);
}
} else {
zaps.set(rootId, [event]);
}