mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix a glitch in history re-open while loading.
This commit is contained in:
parent
8245660c81
commit
eeb8af3ca6
1 changed files with 13 additions and 6 deletions
|
@ -2031,12 +2031,19 @@ void HistoryWidget::showHistory(
|
|||
}
|
||||
const auto canShowNow = _history->isReadyFor(showAtMsgId);
|
||||
if (!canShowNow) {
|
||||
DEBUG_LOG(("JumpToEnd(%1, %2, %3): Showing delayed at %4."
|
||||
).arg(_history->peer->name()
|
||||
).arg(_history->inboxReadTillId().bare
|
||||
).arg(Logs::b(_history->loadedAtBottom())
|
||||
).arg(showAtMsgId.bare));
|
||||
delayedShowAt(showAtMsgId);
|
||||
if (!_firstLoadRequest) {
|
||||
DEBUG_LOG(("JumpToEnd(%1, %2, %3): Showing delayed at %4."
|
||||
).arg(_history->peer->name()
|
||||
).arg(_history->inboxReadTillId().bare
|
||||
).arg(Logs::b(_history->loadedAtBottom())
|
||||
).arg(showAtMsgId.bare));
|
||||
delayedShowAt(showAtMsgId);
|
||||
} else if (_showAtMsgId != showAtMsgId) {
|
||||
clearAllLoadRequests();
|
||||
setMsgId(showAtMsgId);
|
||||
firstLoadMessages();
|
||||
doneShow();
|
||||
}
|
||||
} else {
|
||||
_history->forgetScrollState();
|
||||
if (_migrated) {
|
||||
|
|
Loading…
Add table
Reference in a new issue