Revert "Merge branch 'main' into DevelopCkutls"

This reverts commit f0ef1fc13e, reversing
changes made to 052bc12b39.
This commit is contained in:
rafael1209
2024-04-08 21:05:41 +03:00
parent 2d65e4cd74
commit 26ee6ded22
40 changed files with 246 additions and 2357 deletions

View File

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