nvrsion: Add Chat: Mesh Group Reconnection, Fix Mac instances not re-joining mesh groups, and Refactor LANTransport, LANBrowser, PeerClient, and PeerDialer to ensure connections form when devices are online.
Nucleic-Promote: 1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -9,6 +9,9 @@ struct StartChatComposer: View {
|
||||
/// start typing a new chat immediately. Consumed (reset to false) once handled, so it never
|
||||
/// steals focus on a later Home appearance. `.constant(false)` for the iPhone/compact path.
|
||||
var focusNewChat: Binding<Bool> = .constant(false)
|
||||
/// Called after a chat is kicked off, so a host that presents the composer modally (e.g. the
|
||||
/// Sessions tab's floating New-chat button) can dismiss itself. Home leaves it nil and stays put.
|
||||
var onStart: (() -> Void)? = nil
|
||||
@State private var projectID: ProjectID?
|
||||
@State private var draft = ""
|
||||
@State private var auto = false
|
||||
@@ -93,6 +96,7 @@ struct StartChatComposer: View {
|
||||
baseBranch: branch.isEmpty ? nil : branch,
|
||||
useWorktree: useWorktree, auto: auto)
|
||||
draft = ""
|
||||
onStart?()
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "arrow.up.circle.fill").font(.title)
|
||||
|
||||
Reference in New Issue
Block a user