Fix bot about text layout on wide windows.

This commit is contained in:
John Preston 2024-07-18 13:55:13 +02:00
parent 730c968b1e
commit 484c647b5b

View file

@ -929,9 +929,6 @@ QSize Message::performCountOptimalSize() {
- st::msgPadding.left()
- st::msgPadding.right();
if (withVisibleText) {
if (botTop) {
minHeight += botTop->height;
}
if (maxWidth < textualWidth) {
minHeight -= text().minHeight();
minHeight += text().countHeight(innerWidth);