Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api-docs: Update narrow usage examples for get_messages.

Lauryn Menard7644c83cca9d
diff --git a/zerver/openapi/javascript_examples.js b/zerver/openapi/javascript_examples.js
index f371e3ab4cc..d7886b8336d 100644
--- a/zerver/openapi/javascript_examples.js
+++ b/zerver/openapi/javascript_examples.js
@@ -167,7 +167,7 @@ add_example("get_messages", "/messages:get", 200, async (client, console) => {
num_after: 0,
narrow: [
{operator: "sender", operand: "[email protected]"},
- {operator: "stream", operand: "Verona"},
+ {operator: "channel", operand: "Verona"},
],
};
diff --git a/zerver/openapi/python_examples.py b/zerver/openapi/python_examples.py
index 8ef9b1c53e5..1648026688d 100644
--- a/zerver/openapi/python_examples.py
+++ b/zerver/openapi/python_examples.py
@@ -967,7 +967,7 @@ def get_messages(client: Client) -> None:
"num_after": 0,
"narrow": [
{"operator": "sender", "operand": "[email protected]"},
- {"operator": "stream", "operand": "Verona"},
+ {"operator": "channel", "operand": "Verona"},
],
}
result = client.get_messages(request)