diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-12-10 18:49:06 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-12-10 18:49:06 +0100 |
commit | 2f8e3dedd4c33e5759adea186c1f1bb77c242069 (patch) | |
tree | ee4f888ffb15d621da574447e7db8caa4589b91c /src/plugins/Matrix.cpp | |
parent | 333ad96a703668f5a1392ee38b739bf393907221 (diff) |
Dont show notification for non message messages
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r-- | src/plugins/Matrix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 0d93bd0..9bbf9bd 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2759,7 +2759,7 @@ namespace QuickMedia { for(auto &message : new_messages) { // 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) { + if(message_is_timeline(message.get()) && me && message->timestamp > read_marker_message_timestamp) { std::string message_str = message_to_qm_text(this, message.get(), false); message->notification_mentions_me = message_contains_user_mention(message_str, my_display_name) || message_contains_user_mention(message_str, me->user_id) || message_contains_user_mention(message_str, "@room"); } |