diff options
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r-- | src/plugins/Matrix.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 2b72f03..4693997 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -528,8 +528,10 @@ namespace QuickMedia { if(last_unread_message && !sync_is_cache) { std::string room_desc = "Unread: " + matrix->message_get_author_displayname(last_unread_message) + ": " + message_to_room_description_text(last_unread_message); int unread_notification_count = room->unread_notification_count; - if(unread_notification_count > 0) + if(unread_notification_count > 0) { room_desc += "\n** " + std::to_string(unread_notification_count) + " unread mention(s) **"; // TODO: Better notification? + room->body_item->set_description_color(sf::Color(255, 100, 100)); + } room->body_item->set_description(std::move(room_desc)); room->body_item->set_title_color(sf::Color(255, 100, 100)); room->last_message_read = false; @@ -538,6 +540,7 @@ namespace QuickMedia { room_tags_page->move_room_to_top(room); } else if(is_initial_sync) { room->body_item->set_description(matrix->message_get_author_displayname(last_new_message.get()) + ": " + message_to_room_description_text(last_new_message.get())); + room->body_item->set_description_color(sf::Color(179, 179, 179)); } } |