From 315c85fb8dc7ffe34439ac9978642394dbdc9897 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 31 Jan 2022 18:44:05 +0300 Subject: [PATCH] Always show unread mentions / reactions buttons. --- .../SourceFiles/history/history_widget.cpp | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 0da0b36bda..1d4d78926a 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -5659,23 +5659,9 @@ void HistoryWidget::updateUnreadThingsVisibility() { unreadThings.preloadEnough(_history); const auto updateWithLoadedCount = [&](CornerButton &button, int count) { - updateCornerButtonVisibility(button, [&] { - if (!count - || _firstLoadRequest - || _voiceRecordBar->isLockPresent()) { - return false; - } - // If we have an unheard voice message with the mention - // and our message is the last one, we can't see the status - // (delivered/read) of this message. - // (Except for MacBooks with the TouchPad.) - if (_scroll->scrollTop() == _scroll->scrollTopMax()) { - if (const auto lastMessage = _history->lastMessage()) { - return !lastMessage->from()->isSelf(); - } - } - return true; - }()); + updateCornerButtonVisibility(button, (count > 0) + && !_firstLoadRequest + && !_voiceRecordBar->isLockPresent()); }; if (unreadThings.trackMentions(_peer)) { if (const auto count = _history->unreadMentions().count(0)) {