filter: Use "channels" operator for the Filter class.

Update the Filter class to use "channels" as the canoncial operator
for public stream searches and web-public message fetch narrows,
but keep using "streams" for user-facing text and URLs.

When searching, "channels" does not create any suggestions until
a colon is added and then it shows suggestions with "streams". And
when a search string with channel as an operator is entered, then
it is replaced by "streams" as well.

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard
2024-04-12 13:45:46 +02:00
committed by Tim Abbott
parent 1e7c5b38f8
commit a446033f32
9 changed files with 82 additions and 30 deletions

View File

@@ -92,6 +92,7 @@ export function is_create_new_stream_narrow(): boolean {
}
export const allowed_web_public_narrows = [
"channels",
"channel",
"streams",
"stream",