Fix text message edit admin event log entries.

Regression was introduced in a513b1c.

In case of text messages entry->_page minimal height is counted in
the whole message minimal height and should not be added.
This commit is contained in:
John Preston 2017-07-23 12:31:44 +03:00
parent 9bd983bb9d
commit fa70bf9e0c
1 changed files with 6 additions and 3 deletions

View File

@ -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()) {