mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Reduce too long conversation names.
This commit is contained in:
parent
8eadb03d59
commit
ee2689ad84
@ -385,6 +385,10 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
*/
|
*/
|
||||||
changeName: function(newName, infos){
|
changeName: function(newName, infos){
|
||||||
|
|
||||||
|
//Reduce new name
|
||||||
|
if(newName.length > 18)
|
||||||
|
newName = newName.slice(0, 17) + "...";
|
||||||
|
|
||||||
//Empty name field
|
//Empty name field
|
||||||
emptyElem(infos.boxTitle);
|
emptyElem(infos.boxTitle);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user