mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Fix scroll history to down with unread bar.
Regression was introduced in 972b5078f6
.
When we show history at a specific message or at unread messages we
need to clear and destroy old showFrom and unreadBar like it is done
in historyLoaded(), otherwise we always scroll to existing unreadBar.
This commit is contained in:
parent
9a18ecf93d
commit
a1f2fb46f9
1 changed files with 3 additions and 0 deletions
|
@ -1794,6 +1794,9 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re
|
|||
|
||||
setMsgId(showAtMsgId);
|
||||
if (_historyInited) {
|
||||
countHistoryShowFrom();
|
||||
destroyUnreadBar();
|
||||
|
||||
auto item = getItemFromHistoryOrMigrated(_showAtMsgId);
|
||||
animatedScrollToY(countInitialScrollTop(), item);
|
||||
highlightMessage(item);
|
||||
|
|
Loading…
Add table
Reference in a new issue