12 lines
279 B
Swift
12 lines
279 B
Swift
extension ConversationState {
|
|
static func reducer(state: inout ConversationState, action: ConversationAction) {
|
|
switch action {
|
|
case .makeConversationActive(let chat):
|
|
state.currentChat = chat
|
|
|
|
default:
|
|
break
|
|
}
|
|
}
|
|
}
|