diff options
author | Rahix <rahix@rahix.de> | 2019-05-16 08:49:44 +0200 |
---|---|---|
committer | Rahix <rahix@rahix.de> | 2019-05-16 09:02:52 +0200 |
commit | 7ff99104d2d95ece9ad78fb718aed5c023e66714 (patch) | |
tree | 86193115a8b50b589f3a0eaaff1ac14f2fa2a9bc /libdino/src/service/notification_events.vala | |
parent | 80b946c85c9235deb5471cdc4f0d561a4fb5a3bb (diff) | |
download | dino-7ff99104d2d95ece9ad78fb718aed5c023e66714.tar.gz dino-7ff99104d2d95ece9ad78fb718aed5c023e66714.zip |
Disable notification on file in "mention only" groupchat
Signed-off-by: Rahix <rahix@rahix.de>
Diffstat (limited to 'libdino/src/service/notification_events.vala')
-rw-r--r-- | libdino/src/service/notification_events.vala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/service/notification_events.vala b/libdino/src/service/notification_events.vala index 6a99653e..ea95278d 100644 --- a/libdino/src/service/notification_events.vala +++ b/libdino/src/service/notification_events.vala @@ -70,6 +70,8 @@ public class NotificationEvents : StreamInteractionModule, Object { break; case FileItem.TYPE: FileTransfer file_transfer = (content_item as FileItem).file_transfer; + // Don't notify on file transfers in a groupchat set to "mention only" + if (notify == Conversation.NotifySetting.HIGHLIGHT) return false; if (file_transfer.direction == FileTransfer.DIRECTION_SENT) return false; break; } |