mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
typing_status: Fold stop into main method update.
It'd already been the case for some while that calling `stop` had the same effect as calling `update` (previously `handle_text_input`) with a falsy recipient. With the API changes in the previous few commits, this becomes quite natural to make explicit in the API.
This commit is contained in:
@@ -130,12 +130,3 @@ export function update(worker, new_recipient) {
|
||||
actually_ping_server(worker, new_recipient, current_time);
|
||||
start_or_extend_idle_timer(worker);
|
||||
}
|
||||
|
||||
export function stop(worker) {
|
||||
// We get this if somebody closes the compose box, but
|
||||
// it doesn't necessarily mean we had typing indicators
|
||||
// active before this.
|
||||
if (state.current_recipient) {
|
||||
stop_last_notification(worker);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user