aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-17 14:03:21 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-17 14:03:21 +0200
commit395aaef9ba9e7305fe2c5e4ffb8a87e9ae6cdcd9 (patch)
tree12c82ab577128b8ae4f45e1fb05f99ba79021dfd /src/plugins
parent0058d8045137fa2c2c07ddc56458840b0e663c14 (diff)
Properly sort rooms (sort read rooms too)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 775d172..5139380 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -644,6 +644,9 @@ namespace QuickMedia {
} else if(last_new_message) {
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);
+
+ rooms_page->move_room_to_top(room);
+ room_tags_page->move_room_to_top(room);
}
}