Fix jumping to an old group message before migration.

Fixes #3513.
This commit is contained in:
John Preston 2017-06-11 12:26:34 +02:00
parent fe3c33fb52
commit 80273c57d0
1 changed files with 1 additions and 1 deletions

View File

@ -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) {