macOS client overlays, menus and notifications
This commit is contained in:
@@ -347,6 +347,11 @@ struct ComposerView: View {
|
||||
.onChange(of: modelKey) {
|
||||
pick = nil
|
||||
}
|
||||
.onChange(of: overlays.leadFocus) {
|
||||
if chat.kind == .lead {
|
||||
focused = true
|
||||
}
|
||||
}
|
||||
.onChange(of: focused) {
|
||||
if !focused {
|
||||
store.drafts?.flush()
|
||||
|
||||
Reference in New Issue
Block a user