mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix crash after comments button destruction.
Regression was introduced in df66162bca
.
This commit is contained in:
parent
3cb89339c8
commit
86f53d3eff
1 changed files with 2 additions and 1 deletions
|
@ -2790,8 +2790,9 @@ int Message::resizeContentGetHeight(int newWidth) {
|
|||
|
||||
if (item->repliesAreComments() || item->externalReply()) {
|
||||
newHeight += st::historyCommentsButtonHeight;
|
||||
} else {
|
||||
} else if (_comments) {
|
||||
_comments = nullptr;
|
||||
checkHeavyPart();
|
||||
}
|
||||
newHeight += viewButtonHeight();
|
||||
} else if (mediaDisplayed) {
|
||||
|
|
Loading…
Add table
Reference in a new issue