diff options
author | fiaxh <git@mx.ax.lt> | 2017-10-14 19:34:30 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-10-21 23:31:05 +0200 |
commit | 8b43df8ec3f92477f857280668a9f29f0b9d6229 (patch) | |
tree | bb7d1411e0c3f486d3977e2edad2b701702c2362 /plugins/http-files/src/plugin.vala | |
parent | 9d8e1e88ec61403659a8cc410d5c4414e3bd3a96 (diff) | |
download | dino-8b43df8ec3f92477f857280668a9f29f0b9d6229.tar.gz dino-8b43df8ec3f92477f857280668a9f29f0b9d6229.zip |
Handle file uploading in libdino & main, have http upload as provider
Diffstat (limited to 'plugins/http-files/src/plugin.vala')
-rw-r--r-- | plugins/http-files/src/plugin.vala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/http-files/src/plugin.vala b/plugins/http-files/src/plugin.vala index d91b0c97..7fc01e65 100644 --- a/plugins/http-files/src/plugin.vala +++ b/plugins/http-files/src/plugin.vala @@ -6,7 +6,6 @@ namespace Dino.Plugins.HttpFiles { public class Plugin : RootInterface, Object { public Dino.Application app; - public ConversationsTitlebarEntry conversations_titlebar_entry; public FileProvider file_provider; public void registered(Dino.Application app) { @@ -14,15 +13,14 @@ public class Plugin : RootInterface, Object { this.app = app; Manager.start(this.app.stream_interactor); - conversations_titlebar_entry = new ConversationsTitlebarEntry(app.stream_interactor); file_provider = new FileProvider(app.stream_interactor, app.db); - 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()); }); app.stream_interactor.get_module(FileManager.IDENTITY).add_provider(file_provider); + app.plugin_registry.register_message_display(new FileMessageFilterDisplay(app.db)); } catch (Error e) { print(@"Error initializing http-files: $(e.message)\n"); } |