another.im-ios/ConversationsClassic/AppCore/Reducers/ConversationReducer.swift

12 lines
279 B
Swift
Raw Normal View History

2024-06-21 10:32:16 +00:00
extension ConversationState {
static func reducer(state: inout ConversationState, action: ConversationAction) {
switch action {
2024-06-21 10:42:50 +00:00
case .makeConversationActive(let chat):
state.currentChat = chat
2024-06-21 10:32:16 +00:00
default:
break
}
}
}