conversations-classic-ios/ConversationsClassic/AppCore/Reducers/ChatsReducer.swift
2024-06-19 17:15:27 +02:00

12 lines
248 B
Swift

extension ChatsState {
static func reducer(state: inout ChatsState, action: ChatsAction) {
switch action {
case .chatsListUpdated(let chats):
state.chats = chats
default:
break
}
}
}