mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
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:
committed by
Tim Abbott
parent
5817da709c
commit
a22f637769
@@ -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=[
|
||||
|
||||
Reference in New Issue
Block a user