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/conversation.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/conversation.vala')
-rw-r--r-- | libdino/src/entity/conversation.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/entity/conversation.vala b/libdino/src/entity/conversation.vala index 0537ee61..53c59bd2 100644 --- a/libdino/src/entity/conversation.vala +++ b/libdino/src/entity/conversation.vala @@ -54,7 +54,7 @@ public class Conversation : Object { type_ = (Conversation.Type) row[db.conversation.type_]; account = db.get_account_by_id(row[db.conversation.account_id]); string? resource = row[db.conversation.resource]; - counterpart = Jid.parse(db.get_jid_by_id(row[db.conversation.jid_id])); + counterpart = db.get_jid_by_id(row[db.conversation.jid_id]); if (type_ == Conversation.Type.GROUPCHAT_PM) counterpart = counterpart.with_resource(resource); nickname = type_ == Conversation.Type.GROUPCHAT ? resource : null; active = row[db.conversation.active]; |