wip
This commit is contained in:
parent
edfc3785e9
commit
868f326bbc
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue