Add character limit and check validation of messages in Chat (#105)

This commit is contained in:
Phuoc Anh Kha Le 2024-01-28 15:39:27 -06:00 committed by GitHub
parent 350492c6e4
commit f7fa1c01cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 57 additions and 22 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">