collab_ui: Open contact finder with empty query (#61363)

I ran into this while conducting some tests. If you search for a channel
name in the Collab Panel and then try to “Add a Contact,” it seeds the
query with your search term from the current contents of that channel
search editor.

Opted to just drop that method altogether as it’s not being used
anywhere else.

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

---

Release Notes:

- Fixed the contact finder inheriting the channel search query in the
Collab Panel
This commit is contained in:
Kunall Banerjee authored and GitHub committed 2026-07-29 20:58:08 +00:00
1 parent 9a6ed13221
commit 1be046a007
2 files changed
+1 -9

No files matched your search

+1 -3
View File
@@ -2132,9 +2132,7 @@ impl CollabPanel {
if let Some(workspace) = self.workspace.upgrade() {
workspace.update(cx, |workspace, cx| {
workspace.toggle_modal(window, cx, |window, cx| {
let mut finder = ContactFinder::new(self.user_store.clone(), window, cx);
finder.set_query(self.filter_editor.read(cx).text(cx), window, cx);
finder
ContactFinder::new(self.user_store.clone(), window, cx)
});
});
}
@@ -25,12 +25,6 @@ impl ContactFinder {
Self { picker }
}
pub fn set_query(&mut self, query: String, window: &mut Window, cx: &mut Context<Self>) {
self.picker.update(cx, |picker, cx| {
picker.set_query(&query, window, cx);
});
}
}
impl Render for ContactFinder {