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,
|
2024-06-24 10:44:55 +00:00
|
|
|
ConversationMiddleware.shared.middleware,
|
2024-07-10 14:13:47 +00:00
|
|
|
MessagesMiddleware.shared.middleware,
|
|
|
|
SharingMiddleware.shared.middleware
|
2024-06-19 15:15:27 +00:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct ConversationsClassic: App {
|
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
|
|
|
BaseNavigationView()
|
|
|
|
.environmentObject(store)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|