Fix root comments post layout.

This commit is contained in:
John Preston 2020-10-01 15:12:57 +03:00
parent 92dbd7089b
commit 784f10678c
1 changed files with 5 additions and 1 deletions

View File

@ -2401,7 +2401,11 @@ int Message::resizeContentGetHeight(int newWidth) {
const auto bubble = drawBubble();
// This code duplicates countGeometry() but also resizes media.
auto contentWidth = newWidth - (st::msgMargin.left() + st::msgMargin.right());
const auto commentsRoot = (context() == Context::Replies)
&& data()->isDiscussionPost();
auto contentWidth = newWidth
- st::msgMargin.left()
- (commentsRoot ? st::msgMargin.left() : st::msgMargin.right());
if (hasFromPhoto()) {
if (const auto size = rightActionSize()) {
contentWidth -= size->width() + (st::msgPhotoSkip - st::historyFastShareSize);