diff options
author | fiaxh <git@lightrise.org> | 2021-12-09 15:46:16 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-12-09 15:46:16 +0100 |
commit | fa1ba2f83dcbfbd009b61a6139be2233d729cb89 (patch) | |
tree | 459770198fc38bf2f1620cdfb316a4ba1dff5ff4 /plugins/http-files/src/plugin.vala | |
parent | 905f93bcccd26a035cc9d37378b45ff87298adb5 (diff) | |
download | dino-fa1ba2f83dcbfbd009b61a6139be2233d729cb89.tar.gz dino-fa1ba2f83dcbfbd009b61a6139be2233d729cb89.zip |
Remove ContentFilters
fixes #1129 #573
Diffstat (limited to 'plugins/http-files/src/plugin.vala')
-rw-r--r-- | plugins/http-files/src/plugin.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/http-files/src/plugin.vala b/plugins/http-files/src/plugin.vala index bdf48770..67b32f65 100644 --- a/plugins/http-files/src/plugin.vala +++ b/plugins/http-files/src/plugin.vala @@ -17,8 +17,6 @@ public class Plugin : RootInterface, Object { app.stream_interactor.get_module(FileManager.IDENTITY).add_provider(file_provider); app.stream_interactor.get_module(FileManager.IDENTITY).add_sender(file_sender); - - app.stream_interactor.get_module(ContentItemStore.IDENTITY).add_filter(new FileMessageFilter(app.db)); } public void shutdown() { @@ -28,8 +26,7 @@ public class Plugin : RootInterface, Object { private bool message_is_file(Database db, Entities.Message message) { Qlite.QueryBuilder builder = db.file_transfer.select({db.file_transfer.id}).with(db.file_transfer.info, "=", message.id.to_string()); - Qlite.QueryBuilder builder2 = db.file_transfer.select({db.file_transfer.id}).with(db.file_transfer.info, "=", message.body); - return builder.count() > 0 || builder2.count() > 0; + return builder.count() > 0; } } |