aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-05 13:48:03 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-05 13:48:03 +0200
commitd16b12a12d1f6a328adc8192074b4ac4de8c8e14 (patch)
tree59c8565f13be2f717c79c013bca2228b2c4b3baa /src
parentc35fc22c4ca2a77bfc7317d3b8f78acabb855631 (diff)
Matrix: show room description for latest message if fetching previous messages and description empty
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 7257416..e8c13b9 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -635,7 +635,7 @@ namespace QuickMedia {
rooms_page->move_room_to_top(room);
room_tags_page->move_room_to_top(room);
- } else if(is_initial_sync) {
+ } else if(is_initial_sync || room->body_item->get_description().empty()) {
room->body_item->set_description(extract_first_line_remove_newline_elipses(matrix->message_get_author_displayname(last_new_message.get()), AUTHOR_MAX_LENGTH) + ": " + message_to_room_description_text(last_new_message.get()));
room->body_item->set_description_color(get_current_theme().faded_text_color);
}