aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-19 16:40:42 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-19 17:13:17 +0200
commit4ff87535e7aae35bfbd66fe88402dcb513af249c (patch)
tree6427d23446d8f2aec80abc15d912010c26ae38fa /src/Body.cpp
parentf4a02cabfd7452ed13b9c7b2e8b20ea5886768c8 (diff)
Matrix: add ctrl+r to navigate to replied to message and navigate to message from notifications tab
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index b7424c5..f9a3717 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -1581,6 +1581,7 @@ namespace QuickMedia {
has_loaded_text = true;
}
+ // TODO: Only do this if reactions dirty?
if(!item->reactions.empty() && include_embedded_item) {
float reaction_offset_x = 0.0f;
item_height += body_spacing[body_theme].reaction_padding_y;
@@ -1613,7 +1614,8 @@ namespace QuickMedia {
const bool has_thumbnail = draw_thumbnails && !item->thumbnail_url.empty() && !merge_with_previous;
const float padding_y = has_thumbnail ? body_spacing[body_theme].padding_y : body_spacing[body_theme].padding_y_text_only;
item_height = std::max(item_height, item->loaded_image_size.y);
- item_height += (padding_y * 2.0f);
+ if(item_height > 0.0f)
+ item_height += (padding_y * 2.0f);
}
item->loaded_height = item_height;