mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Cause update_floating_recipient_bar to get called less frequently.
Putting update_floating_recipient_bar in the old location caused it to be called on every single keypress, which is unnecessarily expensive. Instead, just call it once when we think we might actually need it: after initiating a narrow. (imported from commit a6c1518c4001a2dde44d7b512236795da3ccd351)
This commit is contained in:
@@ -189,7 +189,6 @@ function select_message(next_message, opts) {
|
||||
|
||||
if (opts.then_scroll) {
|
||||
recenter_view(next_message);
|
||||
ui.update_floating_recipient_bar();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user