mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Revert "Remove from ACTIVE_MESSAGES
when sending complete
"
As it would cause race conditions.
This reverts commit 2ee96543ca
.
This commit is contained in:
parent
2ee96543ca
commit
051d488c21
|
@ -48,9 +48,6 @@ export async function run({ core, server, socket, payload }) {
|
||||||
|
|
||||||
if (msg.userid === socket.userid && msg.customId === customId) {
|
if (msg.userid === socket.userid && msg.customId === customId) {
|
||||||
message = ACTIVE_MESSAGES[i];
|
message = ACTIVE_MESSAGES[i];
|
||||||
if (mode === 'complete') {
|
|
||||||
ACTIVE_MESSAGES.splice(i, 1);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user