diff --git a/web/src/inbox_ui.js b/web/src/inbox_ui.js index 2e2a52530f..43c851fafd 100644 --- a/web/src/inbox_ui.js +++ b/web/src/inbox_ui.js @@ -459,7 +459,11 @@ export function complete_rerender() { } 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; update_triggered_by_user = true; update();