From 0b9bebd97e285836f89c580cf974d484dc729b61 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Sun, 4 Oct 2020 06:41:00 -0300 Subject: [PATCH] Use Dino.Util.get_content_type also on preview --- main/src/ui/conversation_content_view/file_image_widget.vala | 2 +- main/src/ui/file_send_overlay.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/ui/conversation_content_view/file_image_widget.vala b/main/src/ui/conversation_content_view/file_image_widget.vala index 8005f996..f6ad84c7 100644 --- a/main/src/ui/conversation_content_view/file_image_widget.vala +++ b/main/src/ui/conversation_content_view/file_image_widget.vala @@ -46,7 +46,7 @@ public class FileImageWidget : EventBox { if (image == null) throw new Error(-1, 0, "Error loading image"); FileInfo file_info = file.query_info("*", FileQueryInfoFlags.NONE); - string? mime_type = file_info.get_content_type(); + string? mime_type = Dino.Util.get_content_type(file_info); file_default_widget = new FileDefaultWidget() { valign=Align.END, vexpand=false }; file_default_widget.stack_event_box.visible = false; diff --git a/main/src/ui/file_send_overlay.vala b/main/src/ui/file_send_overlay.vala index e92cf836..f545129f 100644 --- a/main/src/ui/file_send_overlay.vala +++ b/main/src/ui/file_send_overlay.vala @@ -50,7 +50,7 @@ public class FileSendOverlay : Gtk.EventBox { private async void load_file_widget(File file, FileInfo file_info) { string file_name = file_info.get_display_name(); - string mime_type = file_info.get_content_type(); + string mime_type = Dino.Util.get_content_type(file_info); bool is_image = false;