From 64b17159beb2240c2c4624fe0a7305d9292d8ec0 Mon Sep 17 00:00:00 2001 From: faumaray Date: Wed, 28 Oct 2026 08:26:15 +0300 Subject: [PATCH] voelin-gpui: the tree has no words of its own for a search it does not have The tree's empty_words had an arm for Emptiness::NoMatch with a string no user can reach: the tree's emptiness comes from Emptiness::of, which never says NoMatch (the members' search is the panel's, TreeModel::people_emptiness). The arm shares the Connect words now, with the reason in a comment. Co-Authored-By: Claude Sonnet 5.5 --- crates/voelin-gpui/src/shell/channels.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/voelin-gpui/src/shell/channels.rs b/crates/voelin-gpui/src/shell/channels.rs index 364cb25..d2a0811 100644 --- a/crates/voelin-gpui/src/shell/channels.rs +++ b/crates/voelin-gpui/src/shell/channels.rs @@ -153,9 +153,10 @@ fn empty_words(emptiness: Emptiness) -> &'static str { match emptiness { Emptiness::NoServer => "No server yet.", Emptiness::Loading => "Loading the channels…", - Emptiness::Connect => "Connect to see the channels.", - // The tree is not searched; a server with people has channels. - Emptiness::NoMatch => "No channels here.", + // The tree is not searched, so it is never `NoMatch` (the members + // panel's, `TreeModel::people_emptiness`): the model gives it + // `Emptiness::of`, which does not say it. + Emptiness::Connect | Emptiness::NoMatch => "Connect to see the channels.", } }