web-narrow: Update operators to use channel and channels.

Updates operators used for narrow.activate and sent as narrow
parameters to the server to use channel and channels.

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard
2024-04-23 21:59:36 +02:00
committed by Tim Abbott
parent 8d102cf12f
commit 58b91202f4
12 changed files with 21 additions and 21 deletions

View File

@@ -1393,7 +1393,7 @@ export function with_first_message_id(stream_id, topic_name, success_cb, error_c
num_before: 1,
num_after: 0,
narrow: JSON.stringify([
{operator: "stream", operand: stream_id},
{operator: "channel", operand: stream_id},
{operator: "topic", operand: topic_name},
]),
};
@@ -1421,7 +1421,7 @@ export function is_message_oldest_or_newest(
num_before: 1,
num_after: 1,
narrow: JSON.stringify([
{operator: "stream", operand: stream_id},
{operator: "channel", operand: stream_id},
{operator: "topic", operand: topic_name},
]),
};