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:
Prakhar Pratyush
2023-10-12 12:43:34 +05:30
committed by Tim Abbott
parent 78683c1b9c
commit c520a96354
6 changed files with 76 additions and 47 deletions

View File

@@ -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)