mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user