From c2aea9ecc6cfc583972d10d3a4dc4f8771681084 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 12 Nov 2015 10:35:21 +0100 Subject: [PATCH] Only start if user is in group chat. --- app/assets/javascripts/app/controllers/chat.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/controllers/chat.coffee b/app/assets/javascripts/app/controllers/chat.coffee index 8050ef8f8..1908cfd2c 100644 --- a/app/assets/javascripts/app/controllers/chat.coffee +++ b/app/assets/javascripts/app/controllers/chat.coffee @@ -10,6 +10,8 @@ class App.CustomerChat extends App.Controller constructor: -> super + return if !@isRole('Chat') + @i = 0 @chatWindows = {} @totalQuestions = 7