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 {
@Environment(\.router) var router
@EnvironmentObject var chatWrapper: WrapperChat
@StateObject var chatWrapper: WrapperChat
@State private var autoScroll = true
@State private var firstIsVisible = true

View file

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

View file

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