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