From 0e38baf1451c48bb6c782870c1f43e349ff31c5b 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 reulst 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(); }