mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
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:
parent
9bd983bb9d
commit
fa70bf9e0c
1 changed files with 6 additions and 3 deletions
|
@ -1843,9 +1843,12 @@ int HistoryMessage::performResizeGetHeight() {
|
||||||
_height = _minh;
|
_height = _minh;
|
||||||
if (mediaDisplayed) {
|
if (mediaDisplayed) {
|
||||||
_media->resizeGetHeight(_maxw);
|
_media->resizeGetHeight(_maxw);
|
||||||
}
|
if (entry) {
|
||||||
if (entry) {
|
_height += entry->_page->resizeGetHeight(countGeometry().width());
|
||||||
_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 {
|
} else {
|
||||||
if (emptyText()) {
|
if (emptyText()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue