From 051d488c2168f98b1928e437621ec3f1feb12493 Mon Sep 17 00:00:00 2001 From: carrot <68383195+AnnikaV9@users.noreply.github.com> Date: Thu, 23 Nov 2023 17:42:49 +0800 Subject: [PATCH] Revert "Remove from `ACTIVE_MESSAGES` when sending `complete`" As it would cause race conditions. This reverts commit 2ee96543ca29b88df8dae2fd8fe24004620b495a. --- commands/core/updateMessage.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/commands/core/updateMessage.js b/commands/core/updateMessage.js index 8d4e4cf..af1a6f1 100644 --- a/commands/core/updateMessage.js +++ b/commands/core/updateMessage.js @@ -48,9 +48,6 @@ export async function run({ core, server, socket, payload }) { if (msg.userid === socket.userid && msg.customId === customId) { message = ACTIVE_MESSAGES[i]; - if (mode === 'complete') { - ACTIVE_MESSAGES.splice(i, 1); - } break; } }