From 4d09d7dd218fdc040e6a4746487c626af2e296d0 Mon Sep 17 00:00:00 2001 From: Hepatica Date: Tue, 12 Mar 2024 19:03:41 +0100 Subject: [PATCH] change chat muting time to 100 mil from 2 second --- luckydiamond/src/components/ChatComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luckydiamond/src/components/ChatComponent.vue b/luckydiamond/src/components/ChatComponent.vue index e906c17..a73a836 100644 --- a/luckydiamond/src/components/ChatComponent.vue +++ b/luckydiamond/src/components/ChatComponent.vue @@ -68,11 +68,11 @@ export default { }, ClaimDatamsg(msg) { const now = Date.now(); - if (!this.lastMsgTime || now - this.lastMsgTime >= 2000) { + if (!this.lastMsgTime || now - this.lastMsgTime >= 100) { SendMessageToChat(msg[0]); this.lastMsgTime = now; } else { - alert("Вы не можете отправлять сообщения чаще, чем раз в 2 секунды."); + alert("Вы не можете отправлять сообщения так часто"); } }, muteChat() {