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 --- main/src/ui/conversation_selector/conversation_selector_row.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/src/ui/conversation_selector') diff --git a/main/src/ui/conversation_selector/conversation_selector_row.vala b/main/src/ui/conversation_selector/conversation_selector_row.vala index 7410937a..566406f9 100644 --- a/main/src/ui/conversation_selector/conversation_selector_row.vala +++ b/main/src/ui/conversation_selector/conversation_selector_row.vala @@ -186,7 +186,7 @@ public class ConversationSelectorRow : ListBoxRow { nick_label.label = transfer.direction == Message.DIRECTION_SENT ? _("Me") + ": " : ""; } - bool file_is_image = transfer.mime_type != null && transfer.mime_type.has_prefix("image"); + bool file_is_image = transfer.content_type != null && transfer.content_type.is_image(); change_label_attribute(message_label, attr_style_new(Pango.Style.ITALIC)); if (transfer.direction == Message.DIRECTION_SENT) { message_label.label = (file_is_image ? _("Image sent") : _("File sent") ); -- cgit v1.3