12 lines
248 B
Swift
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
|
||
|
}
|
||
|
}
|
||
|
}
|