From 7ff99104d2d95ece9ad78fb718aed5c023e66714 Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 16 May 2019 08:49:44 +0200 Subject: Disable notification on file in "mention only" groupchat Signed-off-by: Rahix --- libdino/src/service/notification_events.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdino/src') 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; } -- cgit v1.2.3-70-g09d2