This commit is contained in:
Woit 2024-12-09 19:53:56 +01:00
parent edfc3785e9
commit 868f326bbc
3 changed files with 3 additions and 5 deletions

View file

@ -4,7 +4,7 @@ import SwiftUI
struct ConversationScreen: View { struct ConversationScreen: View {
@Environment(\.router) var router @Environment(\.router) var router
@EnvironmentObject var chatWrapper: WrapperChat @StateObject var chatWrapper: WrapperChat
@State private var autoScroll = true @State private var autoScroll = true
@State private var firstIsVisible = true @State private var firstIsVisible = true

View file

@ -65,9 +65,8 @@ private struct ChatsRow: View {
} }
router.showScreen(.push) { _ in router.showScreen(.push) { _ in
ConversationScreen() ConversationScreen(chatWrapper: model)
.navigationBarHidden(true) .navigationBarHidden(true)
.environmentObject(model)
} }
} catch { } catch {
router.showAlert( router.showAlert(

View file

@ -138,9 +138,8 @@ private struct ContactsScreenRow: View {
return return
} }
router.showScreen(.push) { _ in router.showScreen(.push) { _ in
ConversationScreen() ConversationScreen(chatWrapper: model)
.navigationBarHidden(true) .navigationBarHidden(true)
.environmentObject(model)
} }
} }
} }