From f1700a08f9b6fffdbef20c2b4c30b4cabf8f2f96 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 25 Apr 2024 21:03:39 -0500 Subject: [PATCH] InternalRelay: fix event distribution --- src/storages/InternalRelay.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/storages/InternalRelay.ts b/src/storages/InternalRelay.ts index e2f4fad..d99dda2 100644 --- a/src/storages/InternalRelay.ts +++ b/src/storages/InternalRelay.ts @@ -53,10 +53,12 @@ export class InternalRelay implements NRelay { ) as { key: 'domain'; value: string } | undefined)?.value; if (domain === event.author_domain) { - return machina.push(purifyEvent(event)); + machina.push(purifyEvent(event)); + break; } } else { - return machina.push(purifyEvent(event)); + machina.push(purifyEvent(event)); + break; } } }