mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-29 12:35:13 +02:00
Destroy comments button when switched off.
This commit is contained in:
parent
d413080f83
commit
df66162bca
1 changed files with 2 additions and 0 deletions
|
@ -2785,6 +2785,8 @@ int Message::resizeContentGetHeight(int newWidth) {
|
||||||
|
|
||||||
if (item->repliesAreComments() || item->externalReply()) {
|
if (item->repliesAreComments() || item->externalReply()) {
|
||||||
newHeight += st::historyCommentsButtonHeight;
|
newHeight += st::historyCommentsButtonHeight;
|
||||||
|
} else {
|
||||||
|
_comments = nullptr;
|
||||||
}
|
}
|
||||||
newHeight += viewButtonHeight();
|
newHeight += viewButtonHeight();
|
||||||
} else if (mediaDisplayed) {
|
} else if (mediaDisplayed) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue