wip
This commit is contained in:
parent
edfc3785e9
commit
868f326bbc
|
@ -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
|
||||
|
|
|
@ -65,9 +65,8 @@ private struct ChatsRow: View {
|
|||
}
|
||||
|
||||
router.showScreen(.push) { _ in
|
||||
ConversationScreen()
|
||||
ConversationScreen(chatWrapper: model)
|
||||
.navigationBarHidden(true)
|
||||
.environmentObject(model)
|
||||
}
|
||||
} catch {
|
||||
router.showAlert(
|
||||
|
|
|
@ -138,9 +138,8 @@ private struct ContactsScreenRow: View {
|
|||
return
|
||||
}
|
||||
router.showScreen(.push) { _ in
|
||||
ConversationScreen()
|
||||
ConversationScreen(chatWrapper: model)
|
||||
.navigationBarHidden(true)
|
||||
.environmentObject(model)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue