SyntaxGameServer/RCCService2018/content/internal/Chat/Modules/LuaChat/Reducers/ConnectionState.lua

14 lines
351 B
Lua

local CoreGui = game:GetService("CoreGui")
local Modules = CoreGui.RobloxGui.Modules
local SetConnectionState = require(Modules.LuaChat.Actions.SetConnectionState)
return function(state, action)
state = state or Enum.ConnectionState.Connected
if action.type == SetConnectionState.name then
state = action.connectionState
end
return state
end