From 5fb3de6443eaf0d94f1ccd07dee94b124708fe16 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 21 Apr 2025 12:53:34 +0200 Subject: Handle content type != mime type --- libdino/src/service/notification_events.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdino/src/service/notification_events.vala') diff --git a/libdino/src/service/notification_events.vala b/libdino/src/service/notification_events.vala index 8771b5a9..3e077dfc 100644 --- a/libdino/src/service/notification_events.vala +++ b/libdino/src/service/notification_events.vala @@ -83,7 +83,7 @@ public class NotificationEvents : StreamInteractionModule, Object { break; case FileItem.TYPE: FileTransfer file_transfer = ((FileItem) item).file_transfer; - bool is_image = file_transfer.mime_type != null && file_transfer.mime_type.has_prefix("image"); + bool is_image = file_transfer.content_type != null && file_transfer.content_type.is_image(); // Don't notify on file transfers in a groupchat set to "mention only" if (notify == Conversation.NotifySetting.HIGHLIGHT) return; -- cgit v1.3