search: Improve text about searching public channels.

We use different text for guest users, specifying that they can
only search in channels they can view.
The issue description suggests the same for spectators, but
we already use different text for them.

The search-operators help overlay is also updated with the same.

Fixes #30902
This commit is contained in:
Kislay Verma
2024-07-16 23:50:30 +05:30
committed by Tim Abbott
parent ed5d291781
commit de430f541c
5 changed files with 36 additions and 9 deletions

View File

@@ -192,7 +192,11 @@ function initialize_compose_box() {
}
function initialize_message_feed_errors() {
$("#message_feed_errors_container").html(render_message_feed_errors());
$("#message_feed_errors_container").html(
render_message_feed_errors({
is_guest: current_user.is_guest,
}),
);
}
export function initialize_kitchen_sink_stuff() {