aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-02-12 21:24:28 +0100
committerdec05eba <dec05eba@protonmail.com>2021-02-12 21:24:28 +0100
commit30ada00ab85a3b9ee770dcc4ae878f3151b81487 (patch)
tree00933ad8dbb0b806f95bd90b5d62cea36c851e82 /src/plugins/Matrix.cpp
parenta9a9850c69c3d3a7bc7f8858177a720ae5061ee0 (diff)
Matrix: prevent new programs from being launched after a task is killed
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r--src/plugins/Matrix.cpp5
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));
}
}