Destroy comments button when switched off.

This commit is contained in:
John Preston 2021-12-31 17:31:03 +03:00
parent d413080f83
commit df66162bca

View File

@ -2785,6 +2785,8 @@ int Message::resizeContentGetHeight(int newWidth) {
if (item->repliesAreComments() || item->externalReply()) {
newHeight += st::historyCommentsButtonHeight;
} else {
_comments = nullptr;
}
newHeight += viewButtonHeight();
} else if (mediaDisplayed) {