ui: Hide loading indicators for non-existant narrows.

We were still displaying the loading spinner
even after displaying the error text, which
was confusing as we do not try to fetch again.
This fixes it.
This commit is contained in:
ryanreh99 2020-11-29 03:07:47 +05:30 committed by Tim Abbott
parent f900e521ef
commit 7562886cef
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ exports.load_messages = function (opts) {
// retry or display a connection error. // retry or display a connection error.
// //
// FIXME: Warn the user when this has happened? // FIXME: Warn the user when this has happened?
message_scroll.hide_indicators();
const data = { const data = {
messages: [], messages: [],
}; };