mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-29 15:01:03 +00:00
Fix crash in history geometry update.
This commit is contained in:
parent
78d4f29af3
commit
6052a0de0e
@ -4747,8 +4747,12 @@ void HistoryWidget::notify_historyItemLayoutChanged(const HistoryItem *item) {
|
||||
|
||||
void HistoryWidget::notify_handlePendingHistoryUpdate() {
|
||||
if (hasPendingResizedItems() || _updateHistoryGeometryRequired) {
|
||||
updateHistoryGeometry();
|
||||
_list->update();
|
||||
if (_list) {
|
||||
updateHistoryGeometry();
|
||||
_list->update();
|
||||
} else {
|
||||
_updateHistoryGeometryRequired = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user