mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 15:31:20 +00:00
inbox: Don't search if there is no change in text.
This commit is contained in:
@@ -459,7 +459,11 @@ export function complete_rerender() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function search_and_update() {
|
export function search_and_update() {
|
||||||
search_keyword = $("#inbox-search").val() || "";
|
const new_keyword = $("#inbox-search").val() || "";
|
||||||
|
if (new_keyword === search_keyword) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
search_keyword = new_keyword;
|
||||||
current_focus_id = INBOX_SEARCH_ID;
|
current_focus_id = INBOX_SEARCH_ID;
|
||||||
update_triggered_by_user = true;
|
update_triggered_by_user = true;
|
||||||
update();
|
update();
|
||||||
|
|||||||
Reference in New Issue
Block a user