From ee2689ad84ad5cfb9d8a7e3538e1254338ff4568 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 16 Aug 2018 12:37:03 +0200 Subject: [PATCH] Reduce too long conversation names. --- assets/js/components/conversations/chatWindows.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index 7b71435b..6382c024 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -385,6 +385,10 @@ ComunicWeb.components.conversations.chatWindows = { */ changeName: function(newName, infos){ + //Reduce new name + if(newName.length > 18) + newName = newName.slice(0, 17) + "..."; + //Empty name field emptyElem(infos.boxTitle);