another.im-ios/ConversationsClassic/AppCore/Reducers/ConversationReducer.swift
2024-06-26 09:27:23 +02:00

15 lines
348 B
Swift

import SwiftUI
extension ConversationState {
static func reducer(state: inout ConversationState, action: ConversationAction) {
switch action {
case .makeConversationActive(let chat, let roster):
state.currentChat = chat
state.currentRoster = roster
default:
break
}
}
}