Removed not longer needed checks.
This commit is contained in:
parent
bcde9a3695
commit
76a130ac96
1 changed files with 0 additions and 2 deletions
|
@ -5,7 +5,6 @@ class Chat < ApplicationModel
|
||||||
store :preferences
|
store :preferences
|
||||||
|
|
||||||
def customer_state(session_id = nil)
|
def customer_state(session_id = nil)
|
||||||
return { state: 'chat_disabled' } if !Setting.get('chat')
|
|
||||||
|
|
||||||
# reconnect
|
# reconnect
|
||||||
if session_id
|
if session_id
|
||||||
|
@ -63,7 +62,6 @@ class Chat < ApplicationModel
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.agent_state(user_id)
|
def self.agent_state(user_id)
|
||||||
return { state: 'chat_disabled' } if !Setting.get('chat')
|
|
||||||
assets = {}
|
assets = {}
|
||||||
Chat.where(active: true).each {|chat|
|
Chat.where(active: true).each {|chat|
|
||||||
assets = chat.assets(assets)
|
assets = chat.assets(assets)
|
||||||
|
|
Loading…
Reference in a new issue