diff --git a/src/chat/events/registerPollEvent.ts b/src/chat/events/registerPollEvent.ts index b1ab4f30ae..58ecb403cb 100644 --- a/src/chat/events/registerPollEvent.ts +++ b/src/chat/events/registerPollEvent.ts @@ -22,12 +22,18 @@ import { getMessageById } from '../functions'; webpack.onFullReady(register); +const now = Date.now(); + function register() { wrapModuleFunction(upsertVotes, async (func, ...args) => { const [data] = args; for (const d of data) { try { + if (d.senderTimestampMs < now) { + continue; + } + const msg = await getMessageById(d.parentMsgKey); const selectedOptions: any = [];