From 5029a8a7c3c989554544b80dbe449d845d1b700c 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 e3d860ac8..3bf010a1b 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(); }