mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
typing_indicator: Add a 'stream_id' parameter to 'POST /typing'.
This commit adds a 'stream_id' parameter to the 'POST /typing' endpoint. Now, 'to' is used only for "direct" type. In the case of "stream" type, 'stream_id' and 'topic' are used.
This commit is contained in:
committed by
Tim Abbott
parent
78683c1b9c
commit
c520a96354
@@ -1351,7 +1351,7 @@ def set_typing_status(client: Client) -> None:
|
||||
request = {
|
||||
"type": "stream",
|
||||
"op": "start",
|
||||
"to": stream_id,
|
||||
"stream_id": stream_id,
|
||||
"topic": topic,
|
||||
}
|
||||
result = client.set_typing_status(request)
|
||||
@@ -1369,7 +1369,7 @@ def set_typing_status(client: Client) -> None:
|
||||
request = {
|
||||
"type": "stream",
|
||||
"op": "stop",
|
||||
"to": stream_id,
|
||||
"stream_id": stream_id,
|
||||
"topic": topic,
|
||||
}
|
||||
result = client.set_typing_status(request)
|
||||
|
||||
Reference in New Issue
Block a user