Add character limit and check validation of messages in Chat

This commit is contained in:
anhkha2003 2024-01-16 00:46:18 -06:00
parent 995ff88c87
commit 89f396ff23
7 changed files with 43 additions and 10 deletions

View file

@ -88,7 +88,7 @@
</ul>
</div>
<div id="chat-input-container">
<textarea maxlength="5000" id="chat-input" placeholder="{{_('Enter your message')}}"></textarea>
<textarea maxlength="{{5000 if room else 200}}" id="chat-input" placeholder="{{_('Enter your message')}}"></textarea>
<div class="chat-input-icon" id="emoji-button" href="#" title="{{_('Emoji')}}"><i class="icofont-slightly-smile"></i>
</div>
<div class="chat-input-icon" id="submit-button">