diff options
author | fiaxh <git@lightrise.org> | 2019-07-14 13:22:13 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-08-02 18:00:26 +0200 |
commit | 9ee9661bf3616603d9d92590fa1556840fe18970 (patch) | |
tree | e61c0719e877705837e22c08207d596a76285e51 /libdino/src/entity/file_transfer.vala | |
parent | 371959605956148013c7edeca0b2ddb9eb033f08 (diff) | |
download | dino-9ee9661bf3616603d9d92590fa1556840fe18970.tar.gz dino-9ee9661bf3616603d9d92590fa1556840fe18970.zip |
Optimizations: Database indices, cache id-Jid instead of id-jid_string, join real_jid on get messages
Diffstat (limited to 'libdino/src/entity/file_transfer.vala')
-rw-r--r-- | libdino/src/entity/file_transfer.vala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdino/src/entity/file_transfer.vala b/libdino/src/entity/file_transfer.vala index 4e4103b9..9c0099d0 100644 --- a/libdino/src/entity/file_transfer.vala +++ b/libdino/src/entity/file_transfer.vala @@ -70,9 +70,8 @@ public class FileTransfer : Object { id = row[db.file_transfer.id]; account = db.get_account_by_id(row[db.file_transfer.account_id]); // TODO don’t have to generate acc new - string counterpart_jid = db.get_jid_by_id(row[db.file_transfer.counterpart_id]); + counterpart = db.get_jid_by_id(row[db.file_transfer.counterpart_id]); string counterpart_resource = row[db.file_transfer.counterpart_resource]; - counterpart = Jid.parse(counterpart_jid); if (counterpart_resource != null) counterpart = counterpart.with_resource(counterpart_resource); string our_resource = row[db.file_transfer.our_resource]; |