Disable notification on file in "mention only" groupchat

Signed-off-by: Rahix <rahix@rahix.de>
This commit is contained in:
Rahix 2019-05-16 08:49:44 +02:00
parent 80b946c85c
commit 7ff99104d2
No known key found for this signature in database
GPG key ID: E3435E19257D6FCB

View file

@ -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;
}