mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-26 11:13:18 +02:00
parent
fe3c33fb52
commit
80273c57d0
1 changed files with 1 additions and 1 deletions
|
@ -4891,7 +4891,7 @@ int HistoryWidget::countInitialScrollTop() {
|
|||
auto result = ScrollMax;
|
||||
if (_history->scrollTopItem || (_migrated && _migrated->scrollTopItem)) {
|
||||
result = _list->historyScrollTop();
|
||||
} else if (_showAtMsgId && (_showAtMsgId > 0 && -_showAtMsgId < ServerMaxMsgId)) {
|
||||
} else if (_showAtMsgId && (_showAtMsgId > 0 || -_showAtMsgId < ServerMaxMsgId)) {
|
||||
auto item = getItemFromHistoryOrMigrated(_showAtMsgId);
|
||||
auto itemTop = _list->itemTop(item);
|
||||
if (itemTop < 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue