aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/file_provider.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2018-12-29 19:15:25 +0100
committerfiaxh <git@lightrise.org>2018-12-31 16:49:22 +0100
commit446e86d4ad798655aa1a83aebc86f9f2431484df (patch)
tree85948047dcc223ad1ccf130f087fb8a2c2382a11 /plugins/omemo/src/file_provider.vala
parent420942873a595415d09c9a48b9950c214e77008b (diff)
downloaddino-446e86d4ad798655aa1a83aebc86f9f2431484df.tar.gz
dino-446e86d4ad798655aa1a83aebc86f9f2431484df.zip
Check FileTransfer's mime_type for null (unknown) when handeling it
fixes #479
Diffstat (limited to 'plugins/omemo/src/file_provider.vala')
-rw-r--r--plugins/omemo/src/file_provider.vala1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/omemo/src/file_provider.vala b/plugins/omemo/src/file_provider.vala
index 0e11c8f4..49b42e92 100644
--- a/plugins/omemo/src/file_provider.vala
+++ b/plugins/omemo/src/file_provider.vala
@@ -58,7 +58,6 @@ public class FileProvider : Dino.FileProvider, Object {
file_transfer.local_time = message.local_time;
file_transfer.direction = message.direction;
file_transfer.file_name = url_without_hash.substring(url_without_hash.last_index_of("/") + 1);
- file_transfer.mime_type = null;
file_transfer.size = -1;
file_transfer.state = FileTransfer.State.NOT_STARTED;
file_transfer.provider = 0;