diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-05 15:47:23 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-05 15:47:23 +0200 |
commit | 476bf47b41a231f00b6be6e54b2728803741e88c (patch) | |
tree | 280f9ac56b415d9df88a3b7357f68701f6e7805f /src/plugins | |
parent | d16b12a12d1f6a328adc8192074b4ac4de8c8e14 (diff) |
Matrix: revert not showing edit in room description
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index e8c13b9..6d6724a 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -543,11 +543,11 @@ namespace QuickMedia { size_t last_message_index = 0; for(size_t i = 1; i < messages.size(); ++i) { - if(message_is_timeline(messages[i].get()) && messages[i]->related_event_type != RelatedEventType::EDIT && messages[i]->timestamp >= messages[last_message_index]->timestamp) + if(message_is_timeline(messages[i].get()) && messages[i]->timestamp >= messages[last_message_index]->timestamp) last_message_index = i; } - if(message_is_timeline(messages[last_message_index].get()) && messages[last_message_index]->related_event_type != RelatedEventType::EDIT) + if(message_is_timeline(messages[last_message_index].get())) return messages[last_message_index]; return nullptr; @@ -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 || room->body_item->get_description().empty()) { + } else if(is_initial_sync) { 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); } |