diff options
author | bobufa <bobufa@users.noreply.github.com> | 2018-07-22 16:58:51 +0200 |
---|---|---|
committer | bobufa <bobufa@users.noreply.github.com> | 2018-08-13 22:39:18 +0200 |
commit | 4901b096708ff5ca54c3e5393de74f2a8be55894 (patch) | |
tree | d92993706cb1527228508971898e6be57da3a979 /plugins | |
parent | 2e2a9a239000509488f1a369ea4eaf4cdda9c0b1 (diff) | |
download | dino-4901b096708ff5ca54c3e5393de74f2a8be55894.tar.gz dino-4901b096708ff5ca54c3e5393de74f2a8be55894.zip |
add search filter expressions
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/http-files/src/manager.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http-files/src/manager.vala b/plugins/http-files/src/manager.vala index 78c244e3..9faa8933 100644 --- a/plugins/http-files/src/manager.vala +++ b/plugins/http-files/src/manager.vala @@ -98,8 +98,8 @@ public class FileMessageFilter : ContentFilter, Object { } private bool message_is_file(Database db, Entities.Message message) { - Qlite.QueryBuilder builder = db.file_transfer.select().with(db.file_transfer.info, "=", message.id.to_string()); - Qlite.QueryBuilder builder2 = db.file_transfer.select().with(db.file_transfer.info, "=", message.body); + 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; } |