2.5.0 #10
@@ -167,6 +167,11 @@ struct SidebarView: View {
|
||||
}
|
||||
.onChange(of: chatViewModel.currentConversationName) { loadData() }
|
||||
.onChange(of: chatViewModel.messages.count) { loadData() }
|
||||
.onChange(of: chatViewModel.showConversations) { _, isShowing in
|
||||
// Folders/conversations created, renamed, or deleted in the advanced
|
||||
// conversation list modal live in its own @State — refresh ours once it closes.
|
||||
if !isShowing { loadData() }
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
|
||||
Reference in New Issue
Block a user