Clients/Client2018/content/internal/Chat/Modules/LuaChat/Reducers/FriendCount.lua

14 lines
299 B
Lua

local Modules = game:GetService("CoreGui").RobloxGui.Modules
local LuaChat = Modules.LuaChat
local SetFriendCount = require(LuaChat.Actions.SetFriendCount)
return function(state, action)
state = state or 0
if action.type == SetFriendCount.name then
return action.count
end
return state
end