diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 142a335c9..4e3047304 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -614,8 +614,8 @@ void HistoryInner::paintEvent(QPaintEvent *e) { const auto historyDisplayedEmpty = _history->isDisplayedEmpty() && (!_migrated || _migrated->isDisplayedEmpty()); - bool noHistoryDisplayed = _firstLoading || historyDisplayedEmpty; - if (!_firstLoading && _botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) { + bool noHistoryDisplayed = historyDisplayedEmpty; + if (_botAbout && !_botAbout->info->text.isEmpty() && _botAbout->height > 0) { const auto st = context.st; const auto stm = &st->messageStyle(false, false); if (clip.y() < _botAbout->rect.y() + _botAbout->rect.height() && clip.y() + clip.height() > _botAbout->rect.y()) { @@ -2328,11 +2328,6 @@ bool HistoryInner::wasSelectedText() const { return _wasSelectedText; } -void HistoryInner::setFirstLoading(bool loading) { - _firstLoading = loading; - update(); -} - void HistoryInner::visibleAreaUpdated(int top, int bottom) { auto scrolledUp = (top < _visibleAreaTop); _visibleAreaTop = top; diff --git a/Telegram/SourceFiles/history/history_inner_widget.h b/Telegram/SourceFiles/history/history_inner_widget.h index aa29b507b..48b22d794 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.h +++ b/Telegram/SourceFiles/history/history_inner_widget.h @@ -121,7 +121,6 @@ public: void updateBotInfo(bool recount = true); bool wasSelectedText() const; - void setFirstLoading(bool loading); // updates history->scrollTopItem/scrollTopOffset void visibleAreaUpdated(int top, int bottom); @@ -378,8 +377,6 @@ private: mutable int _curBlock = 0; mutable int _curItem = 0; - bool _firstLoading = false; - style::cursor _cursor = style::cur_default; SelectedItems _selected; std::optional _chooseForReportReason;