typing_indicator: Replace private with direct in 'message_type' field.

This commit replaces the value `private` with `direct` in the
`message_type` field for the `typing` events sent when a user
starts or stops typing a message.
This commit is contained in:
Prakhar Pratyush
2023-10-01 23:50:05 +05:30
committed by Tim Abbott
parent 5817da709c
commit a22f637769
7 changed files with 32 additions and 21 deletions

View File

@@ -1443,9 +1443,9 @@ typing_person_type = DictType(
]
)
equals_private_or_stream = EnumType(
equals_direct_or_stream = EnumType(
[
"private",
"direct",
"stream",
]
)
@@ -1454,7 +1454,7 @@ typing_start_event = event_dict_type(
required_keys=[
("type", Equals("typing")),
("op", Equals("start")),
("message_type", equals_private_or_stream),
("message_type", equals_direct_or_stream),
("sender", typing_person_type),
],
optional_keys=[
@@ -1469,7 +1469,7 @@ typing_stop_event = event_dict_type(
required_keys=[
("type", Equals("typing")),
("op", Equals("stop")),
("message_type", equals_private_or_stream),
("message_type", equals_direct_or_stream),
("sender", typing_person_type),
],
optional_keys=[