diff --git a/Telegram/SourceFiles/history/history_message.cpp b/Telegram/SourceFiles/history/history_message.cpp index e1418941b..6d69d3f1c 100644 --- a/Telegram/SourceFiles/history/history_message.cpp +++ b/Telegram/SourceFiles/history/history_message.cpp @@ -1843,9 +1843,12 @@ int HistoryMessage::performResizeGetHeight() { _height = _minh; if (mediaDisplayed) { _media->resizeGetHeight(_maxw); - } - if (entry) { - _height += entry->_page->resizeGetHeight(countGeometry().width()); + if (entry) { + _height += entry->_page->resizeGetHeight(countGeometry().width()); + } + } else if (entry) { + // In case of text-only message it is counted in _minh already. + entry->_page->resizeGetHeight(countGeometry().width()); } } else { if (emptyText()) {