mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix a glitch in history re-open while loading.
This commit is contained in:
@@ -2031,12 +2031,19 @@ void HistoryWidget::showHistory(
|
|||||||
}
|
}
|
||||||
const auto canShowNow = _history->isReadyFor(showAtMsgId);
|
const auto canShowNow = _history->isReadyFor(showAtMsgId);
|
||||||
if (!canShowNow) {
|
if (!canShowNow) {
|
||||||
DEBUG_LOG(("JumpToEnd(%1, %2, %3): Showing delayed at %4."
|
if (!_firstLoadRequest) {
|
||||||
).arg(_history->peer->name()
|
DEBUG_LOG(("JumpToEnd(%1, %2, %3): Showing delayed at %4."
|
||||||
).arg(_history->inboxReadTillId().bare
|
).arg(_history->peer->name()
|
||||||
).arg(Logs::b(_history->loadedAtBottom())
|
).arg(_history->inboxReadTillId().bare
|
||||||
).arg(showAtMsgId.bare));
|
).arg(Logs::b(_history->loadedAtBottom())
|
||||||
delayedShowAt(showAtMsgId);
|
).arg(showAtMsgId.bare));
|
||||||
|
delayedShowAt(showAtMsgId);
|
||||||
|
} else if (_showAtMsgId != showAtMsgId) {
|
||||||
|
clearAllLoadRequests();
|
||||||
|
setMsgId(showAtMsgId);
|
||||||
|
firstLoadMessages();
|
||||||
|
doneShow();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
_history->forgetScrollState();
|
_history->forgetScrollState();
|
||||||
if (_migrated) {
|
if (_migrated) {
|
||||||
|
Reference in New Issue
Block a user