mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Fix crash after comments button destruction.
Regression was introduced in df66162bca
.
This commit is contained in:
@@ -2790,8 +2790,9 @@ int Message::resizeContentGetHeight(int newWidth) {
|
|||||||
|
|
||||||
if (item->repliesAreComments() || item->externalReply()) {
|
if (item->repliesAreComments() || item->externalReply()) {
|
||||||
newHeight += st::historyCommentsButtonHeight;
|
newHeight += st::historyCommentsButtonHeight;
|
||||||
} else {
|
} else if (_comments) {
|
||||||
_comments = nullptr;
|
_comments = nullptr;
|
||||||
|
checkHeavyPart();
|
||||||
}
|
}
|
||||||
newHeight += viewButtonHeight();
|
newHeight += viewButtonHeight();
|
||||||
} else if (mediaDisplayed) {
|
} else if (mediaDisplayed) {
|
||||||
|
Reference in New Issue
Block a user