diff options
author | fiaxh <git@lightrise.org> | 2018-11-23 20:11:32 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2018-11-27 03:41:31 +0100 |
commit | 01360a73ae8a148ca19c75e3b11167965b887d8b (patch) | |
tree | 5138e52bea6362d3e0b2324befdfe77674c2afe6 /plugins/http-files/src/file_provider.vala | |
parent | 2208ff9799b8b551b4da5227a32a09f9e00ffb6a (diff) | |
download | dino-01360a73ae8a148ca19c75e3b11167965b887d8b.tar.gz dino-01360a73ae8a148ca19c75e3b11167965b887d8b.zip |
FileProvider for aesgcm links
Co-authored-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'plugins/http-files/src/file_provider.vala')
-rw-r--r-- | plugins/http-files/src/file_provider.vala | 3 |
1 files changed, 1 insertions, 2 deletions
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; |