Reapply "Merge branch 'main' into DevelopCkutls"

This reverts commit 26ee6ded22.
This commit is contained in:
rafael1209
2024-04-08 23:45:01 +03:00
parent 87816193a2
commit 6601ec2cc9
40 changed files with 2385 additions and 274 deletions

View File

@@ -29,6 +29,8 @@
</li>
</transition-group>
</ul>
</div>
<writechat-component @send="ClaimDatamsg"></writechat-component>
<!-- <div class="chat__mute-button">
@@ -68,11 +70,11 @@ export default {
},
ClaimDatamsg(msg) {
const now = Date.now();
if (!this.lastMsgTime || now - this.lastMsgTime >= 2000) {
if (!this.lastMsgTime || now - this.lastMsgTime >= 1000) {
SendMessageToChat(msg[0]);
this.lastMsgTime = now;
} else {
alert("Вы не можете отправлять сообщения чаще, чем раз в 2 секунды.");
alert("Вы не можете отправлять сообщения так часто");
}
},
muteChat() {
@@ -135,5 +137,4 @@ export default {
</script>
<style scoped>
</style>