From d16b12a12d1f6a328adc8192074b4ac4de8c8e14 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 5 Aug 2021 13:48:03 +0200 Subject: Matrix: show room description for latest message if fetching previous messages and description empty --- src/plugins/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Matrix.cpp') 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); } -- cgit v1.2.3