From 01360a73ae8a148ca19c75e3b11167965b887d8b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 23 Nov 2018 20:11:32 +0100 Subject: FileProvider for aesgcm links Co-authored-by: Thibaut Girka --- plugins/http-files/src/file_provider.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/http-files/src') diff --git a/plugins/http-files/src/file_provider.vala b/plugins/http-files/src/file_provider.vala index 7b52a7fb..a0fe1218 100644 --- a/plugins/http-files/src/file_provider.vala +++ b/plugins/http-files/src/file_provider.vala @@ -44,7 +44,7 @@ public class FileProvider : Dino.FileProvider, Object { if (outer.url_regex.match(message.body)) { string? oob_url = Xmpp.Xep.OutOfBandData.get_url_from_message(message.stanza); if (oob_url != null && oob_url == message.body) { - outer.on_file_message(message, conversation); + yield outer.on_file_message(message, conversation); } } return false; @@ -82,7 +82,6 @@ public class FileProvider : Dino.FileProvider, Object { var session = new Soup.Session(); var head_message = new Soup.Message("HEAD", url_body); if (head_message != null) { - SourceFunc callback = get_meta_info.callback; yield session.send_async(head_message, null); string? content_type = null, content_length = null; -- cgit v1.2.3-70-g09d2