mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Hide/show the floating recipient bar when fade state changes.
This partially reverts d3c28b17859cacd49b7db9f8784d4b8b9069e1ff. It is necessary to call update_floating_recipient_bar from _fade_messages and _want_normal_display because they are called after opening/closing the compose box. There is no scrolling there, so it is not otherwise updated. It is not necessary to call from update_rendered_messages as it is not called on changes of the fade state. Related: Trac #1682 (imported from commit e2528f8c8827b7e2a135d7fc2b53e9e8162799b0)
This commit is contained in:
@@ -32,6 +32,7 @@ function _display_messages_normally() {
|
||||
.removeClass("faded").removeClass("unfaded");
|
||||
|
||||
normal_display = true;
|
||||
ui.update_floating_recipient_bar();
|
||||
}
|
||||
|
||||
function _fade_messages() {
|
||||
@@ -55,6 +56,8 @@ function _fade_messages() {
|
||||
elt.removeClass("faded").addClass("unfaded");
|
||||
}
|
||||
}
|
||||
|
||||
ui.update_floating_recipient_bar();
|
||||
}
|
||||
|
||||
function _want_normal_display() {
|
||||
|
||||
Reference in New Issue
Block a user