From 3a4552843e6ff2a05760577551e157209467dcee Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 10 May 2026 20:48:29 -0400 Subject: [PATCH] Streaks: do a clientside update for people without the plugin --- src/equicordplugins/streaks/index.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/equicordplugins/streaks/index.tsx b/src/equicordplugins/streaks/index.tsx index c0635b38d..4e4fe5d63 100644 --- a/src/equicordplugins/streaks/index.tsx +++ b/src/equicordplugins/streaks/index.tsx @@ -103,8 +103,14 @@ export default definePlugin({ } } else if (message.author.id === recipientId) { if (!theirFlag) { - setTimeout(() => { - useStreaksStore.getState().refresh(recipientId); + setTimeout(async () => { + const before = useStreaksStore.getState().streaks[recipientId]?.count; + await useStreaksStore.getState().refresh(recipientId); + const after = useStreaksStore.getState().streaks[recipientId]?.count; + + if (before === after) { + useStreaksStore.getState().update(recipientId); + } }, 1000); } }