From fe2c77df9fa8765fa447da4fdca644dc3c82b212 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 18 Dec 2017 04:49:08 +0100 Subject: [PATCH] Just update chat window title if title exists. --- app/assets/javascripts/app/controllers/chat.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/chat.coffee b/app/assets/javascripts/app/controllers/chat.coffee index 8eb974089..091c771b2 100644 --- a/app/assets/javascripts/app/controllers/chat.coffee +++ b/app/assets/javascripts/app/controllers/chat.coffee @@ -441,7 +441,8 @@ class ChatWindow extends App.Controller tags: params.tags ) - @metaName.text(params.name) + if !_.isEmpty(params.name) + @metaName.text(params.name) render: -> @html App.view('customer_chat/chat_window')(