diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-12-15 12:44:59 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-12-15 12:45:02 +0100 |
commit | ebfd1293acb274a109b63ff331e2c4eeafeff115 (patch) | |
tree | 16052ce2a734c0c090294962d8e5b2419f05f4bc /src/plugins | |
parent | 86db163a96e0471c6f49da7c1250cc9bde48fdfb (diff) |
Matrix: more red in replies, or whatever
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 44dfa3a..003cf46 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -517,7 +517,7 @@ namespace QuickMedia { if(!it.second.sync_is_cache && it.second.message_dir == MessageDirection::AFTER && !is_initial_sync) { for(auto &message : messages) { - if(message->mentions_me) { + if(message->notification_mentions_me) { // TODO: What if the message or username begins with "-"? also make the notification image be the avatar of the user if((!is_window_focused || room != current_room || page_type == MatrixPageType::ROOM_LIST) && message->related_event_type != RelatedEventType::EDIT && message->related_event_type != RelatedEventType::REDACTION) show_notification("QuickMedia matrix - " + matrix->message_get_author_displayname(message.get()) + " (" + room->get_name() + ")", message->body); @@ -1711,7 +1711,7 @@ namespace QuickMedia { // TODO: Is @room ok? shouldn't we also check if the user has permission to do @room? (only when notifications are limited to @mentions) // TODO: Is comparing against read marker timestamp ok enough? if(me && message->timestamp > read_marker_message_timestamp) - message->mentions_me = message_contains_user_mention(message->body, my_display_name) || message_contains_user_mention(message->body, me->user_id) || message_contains_user_mention(message->body, "@room"); + message->notification_mentions_me = message_contains_user_mention(message->body, my_display_name) || message_contains_user_mention(message->body, me->user_id) || message_contains_user_mention(message->body, "@room"); } } |