Skip to content

Commit

Permalink
message_list: Don't show empty narrow message unless certain.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott authored and sbansal1999 committed May 4, 2023
1 parent 9a8749e commit 307deca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/src/message_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,14 @@ export class MessageList {
this.view.update_render_window(this.selected_idx(), false);

if (this.narrowed) {
if (this.visibly_empty()) {
if (
this.visibly_empty() &&
this.data.has_found_oldest() &&
this.data.has_found_newest()
) {
// Show the empty narrow message only if we're certain
// that the view doesn't have messages that we're
// waiting for the server to send us.
narrow_banner.show_empty_narrow_message();
} else {
narrow_banner.hide_empty_narrow_message();
Expand Down

0 comments on commit 307deca

Please sign in to comment.