From bc13416f8ecdf68d4a37a0b7a095f670acc5a9e7 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Tue, 4 Jul 2023 01:58:51 -0400 Subject: [PATCH] fix: do not deliver poll result if local-only --- .../backend/src/queue/processors/ended-poll-notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/queue/processors/ended-poll-notification.ts b/packages/backend/src/queue/processors/ended-poll-notification.ts index e3d860ac82..3bf010a1b9 100644 --- a/packages/backend/src/queue/processors/ended-poll-notification.ts +++ b/packages/backend/src/queue/processors/ended-poll-notification.ts @@ -33,7 +33,7 @@ export async function endedPollNotification( } // Broadcast the poll result once it ends - await deliverQuestionUpdate(note.id); + if (!note.localOnly) await deliverQuestionUpdate(note.id); done(); }