Revert "Remove from ACTIVE_MESSAGES when sending complete"

As it would cause race conditions.

This reverts commit 2ee96543ca.
This commit is contained in:
carrot
2023-11-23 17:42:49 +08:00
parent 2ee96543ca
commit 051d488c21
-3
View File
@@ -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;
}
}