diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-30 00:03:37 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-31 18:54:38 +0200 |
commit | a257b163376174e4f5efcbc82c9fdd56463c3191 (patch) | |
tree | 5aedafe95426e732d4b4790edc4e23de25844e5d /plugins/http-files/src/plugin.vala | |
parent | 9b5bd0ccf0cdeb49f900450df8eea41c6a0dea75 (diff) | |
download | dino-a257b163376174e4f5efcbc82c9fdd56463c3191.tar.gz dino-a257b163376174e4f5efcbc82c9fdd56463c3191.zip |
Download & inline display images
Diffstat (limited to 'plugins/http-files/src/plugin.vala')
-rw-r--r-- | plugins/http-files/src/plugin.vala | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/http-files/src/plugin.vala b/plugins/http-files/src/plugin.vala index ac6ca87a..d91b0c97 100644 --- a/plugins/http-files/src/plugin.vala +++ b/plugins/http-files/src/plugin.vala @@ -7,17 +7,22 @@ public class Plugin : RootInterface, Object { public Dino.Application app; public ConversationsTitlebarEntry conversations_titlebar_entry; + public FileProvider file_provider; public void registered(Dino.Application app) { try { this.app = app; - this.conversations_titlebar_entry = new ConversationsTitlebarEntry(app.stream_interactor); + Manager.start(this.app.stream_interactor); + + conversations_titlebar_entry = new ConversationsTitlebarEntry(app.stream_interactor); + file_provider = new FileProvider(app.stream_interactor, app.db); - this.app.plugin_registry.register_contact_titlebar_entry(conversations_titlebar_entry); - this.app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => { + app.plugin_registry.register_contact_titlebar_entry(conversations_titlebar_entry); + app.stream_interactor.module_manager.initialize_account_modules.connect((account, list) => { list.add(new UploadStreamModule()); }); - Manager.start(this.app.stream_interactor); + + app.stream_interactor.get_module(FileManager.IDENTITY).add_provider(file_provider); } catch (Error e) { print(@"Error initializing http-files: $(e.message)\n"); } |