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:
parent
b8fd2fb931
commit
2ee96543ca
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user