Skip to content

Commit

Permalink
Fixes issue #2441 - Zammad ignores disabled Chat-Topics for agents.
Browse files Browse the repository at this point in the history
  • Loading branch information
zammad-sync authored and thorsteneckel committed Nov 12, 2019
1 parent d24a7c5 commit 8a5552c
Show file tree
Hide file tree
Showing 8 changed files with 544 additions and 64 deletions.
4 changes: 4 additions & 0 deletions app/assets/javascripts/app/controllers/chat.coffee
Expand Up @@ -832,6 +832,10 @@ class Setting extends App.ControllerModal
# update runtime
@windowSpace.maxChatWindows = params.chat.max_windows

# disable chat if we have no active chat selected
if params.chat && ( _.isEmpty(params.chat.active) || !_.includes(_.values(params.chat.active), 'on') )
@active = false

# update user preferences
@ajax(
id: 'preferences'
Expand Down

0 comments on commit 8a5552c

Please sign in to comment.