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:
Waseem Daher
2013-01-10 14:12:39 -05:00
parent 97e8fb893b
commit 66af2da9ed
2 changed files with 4 additions and 1 deletions

View File

@@ -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;