2024-06-19 15:15:27 +00:00
|
|
|
import Combine
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
let appState = AppState()
|
|
|
|
let store = AppStore(
|
|
|
|
initialState: appState,
|
|
|
|
reducer: AppState.reducer,
|
|
|
|
middlewares: [
|
|
|
|
loggerMiddleware(),
|
|
|
|
StartMiddleware.shared.middleware,
|
|
|
|
DatabaseMiddleware.shared.middleware,
|
|
|
|
AccountsMiddleware.shared.middleware,
|
|
|
|
XMPPMiddleware.shared.middleware,
|
|
|
|
RostersMiddleware.shared.middleware,
|
2024-06-21 10:32:16 +00:00
|
|
|
ChatsMiddleware.shared.middleware,
|
|
|
|
ConversationMiddleware.shared.middleware
|
2024-06-19 15:15:27 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct ConversationsClassic: App {
|
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
|
|
|
BaseNavigationView()
|
|
|
|
.environmentObject(store)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|