1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Remove from ACTIVE_MESSAGES when sending complete

This commit is contained in:
carrot 2023-11-23 09:52:51 +08:00
parent b8fd2fb931
commit 2ee96543ca

View File

@ -48,6 +48,9 @@ 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;
}
}