This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,19 @@
local LuaChat = script.Parent.Parent
local WebApi = require(LuaChat.WebApi)
local SetChatEnabled = require(LuaChat.Actions.SetChatEnabled)
return function(onSuccess)
return function(store)
spawn(function()
local status, response = WebApi.GetChatSettings()
if status ~= WebApi.Status.OK then
warn("Failure in WebApi.GetChatSettings", status)
return
end
store:dispatch(SetChatEnabled(response.chatEnabled))
if onSuccess then
onSuccess(response.chatEnabled)
end
end)
end
end