[NEW][Omnichannel] Ability to set character message limit on Livechat widget#18261
Conversation
* added new input for character limit setting
* Adding translation * Changing label to Livechat_message_character_limit * Removing unused function
renatobecker
left a comment
There was a problem hiding this comment.
@oguhpereira Rocket.Chat already have a global setting to set the Message character limit for all channels. Since we're implementing a specific setting for Livechat, you need to check the other setting as well and pass its value to the livechat as a fallback configuration.

* adding new option to display character limit * Validating if the limitTextLength is greater than Message_MaxAllowedSizeimport * setting Message_MaxAllowedSizeimport as the default of limitTextLength
|
@renatobecker I added a new option that allows to enable or disable the display of the character limit It has also been configured so that it fetches the maximum message size setting. The Message Characther Limit field will be used to set a size smaller than the default for the maximum message size setting. |
renatobecker
left a comment
There was a problem hiding this comment.
I just left some comments, please take a look when you get a chance.
* Review changes pull-request
* Changing Livechat_show_message_character_limit to Livechat_enable_message_character_limit
* Saving limitTextLength with parseInt
* Adding checkbox options showLimitTextLength
* changing translation showLimitTextLengthFormTrueChecked
|
@renatobecker I changed the review requests but I was in doubt if it was to change the following items:
|
…omni * 'develop' of github.com:RocketChat/Rocket.Chat: [NEW] Add REST API endpoint to search Livechat visitors (#18514) LingoHub based on develop (#18516) Update README.md (#18503) [NEW] Channel avatar (#18443) [FIX] Sending notifications from senders without a name (#18479) [FIX] UserCard avatar cache (avatarETag) (#18466) [IMPROVE] Admin Info page requires permission (#18408) [FIX] Marking room as read with unread threads still (#18410) [FIX] Random generated password not matching the Password Policy (#18475) Typo in privacy agreement message (#18476) bugfix for uploading files from livechat (#18474) LingoHub based on develop (#18465) [NEW] Add the ability to set the character message limit on Livechat widget (#18261) [FIX] Migration 194 (#18457) [FIX] Omnichannel session monitor is not starting (#18412) [FIX] Invalid MIME type when uploading audio files (#18426) [FIX] Error when updating omnichannel department without agents parameter (#18428) [FIX] Omnichannel Take Inquiry endpoint checking wrong permission (#18446) [FIX] Multiple push notifications sent via native drivers (#18442) [FIX] Appending 'false' to Jitsi URL (#18430)
| "Message_AudioRecorderEnabled_Description": "Requer arquivos 'audio / mp3' para ser um tipo de mídia aceito dentro das configurações 'Upload de arquivo'.", | ||
| "Message_BadWordsFilterList": "Adicione palavrões para a lista negra", | ||
| "Message_BadWordsFilterListDescription": "Adicione palavrões separados por vírgula para filtrar", | ||
| "Message_Characther_Limit": "Limite do caráter da mensagem", |
There was a problem hiding this comment.
FYI Characther -> Character, but its the same everywhere for this so it still functions fine

Proposed changes
Implementing a new character limit field in the LiveChat Aparence.
Issue(s)
#17451
How to test or reproduce
If you want test with Livechat, you will need this feature
Screenshots
Types of changes
Checklist
Changelog
additional setting in Admin panel for setting a character limit on livechat.
Further comments