increase chat msg size to 4000

This commit is contained in:
Phillip 2023-01-20 15:14:31 +02:00
parent 0a16625ca6
commit c747468ebf

View File

@ -507,8 +507,8 @@ class ChatTextEditor extends LitElement {
${this.chatMessageSize >= 750 ? ${this.chatMessageSize >= 750 ?
html` html`
<div class="message-size-container" style=${this.imageFile && "margin-top: 10px;"}> <div class="message-size-container" style=${this.imageFile && "margin-top: 10px;"}>
<div class="message-size" style="${this.chatMessageSize > 1000 && 'color: #bd1515'}"> <div class="message-size" style="${this.chatMessageSize > 4000 && 'color: #bd1515'}">
${`Your message size is of ${this.chatMessageSize} bytes out of a maximum of 1000`} ${`Your message size is of ${this.chatMessageSize} bytes out of a maximum of 4000`}
</div> </div>
</div> </div>
` : ` :
@ -605,7 +605,7 @@ class ChatTextEditor extends LitElement {
sendMessageFunc(props) { sendMessageFunc(props) {
if(this.editor.isEmpty) return if(this.editor.isEmpty) return
this.getMessageSize(this.editor.getJSON()) this.getMessageSize(this.editor.getJSON())
if (this.chatMessageSize > 1000 ) { if (this.chatMessageSize > 4000 ) {
parentEpml.request('showSnackBar', get("chatpage.cchange29")); parentEpml.request('showSnackBar', get("chatpage.cchange29"));
return; return;
} }