Fix crash in messages animation.

This commit is contained in:
John Preston 2021-07-23 21:41:43 +03:00
parent 99505b4ee2
commit b27dc4ef8d
1 changed files with 2 additions and 0 deletions

View File

@ -1916,6 +1916,8 @@ void HistoryWidget::showHistory(
noSelectingScroll();
_nonEmptySelection = false;
_itemRevealPending.clear();
_itemRevealAnimations.clear();
_itemsRevealHeight = 0;
if (_peer) {
_history = _peer->owner().history(_peer);