mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Attempt to fix a crash in getUserFull() without a loaded peer.
This commit is contained in:
@@ -4742,7 +4742,7 @@ void HistoryWidget::newUnreadMsg(History *history, HistoryItem *item) {
|
||||
|
||||
void HistoryWidget::historyToDown(History *history) {
|
||||
history->forgetScrollState();
|
||||
if (History *migrated = App::historyLoaded(history->peer->migrateFrom())) {
|
||||
if (auto migrated = App::historyLoaded(history->peer->migrateFrom())) {
|
||||
migrated->forgetScrollState();
|
||||
}
|
||||
if (history == _history) {
|
||||
|
Reference in New Issue
Block a user