From 23745d0683194288be5bc1205a859c51dcb25c5f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 21 Dec 2022 19:29:37 +0800 Subject: [PATCH] Update poll reactively --- src/components/status.jsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/components/status.jsx b/src/components/status.jsx index 7001db05..28f75ced 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -359,7 +359,15 @@ function Status({ }), }} /> - {!!poll && } + {!!poll && ( + { + states.statuses.get(id).poll = newPoll; + }} + /> + )} {!spoilerText && sensitive && !!mediaAttachments.length && (