diff options
author | Marvin W <git@larma.de> | 2017-03-11 01:25:45 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-11 02:04:38 +0100 |
commit | 4c48bdc07291f55d7320721a5b0a29c092f7daa0 (patch) | |
tree | 2b7debd52adbbf25ebceb2721014e5dc6c61679f /libdino/src/service/database.vala | |
parent | 1ccad732b9a783d8f0140373602b7c1b84d04198 (diff) | |
download | dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.tar.gz dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.zip |
Improve Plugin API (allow to move encryption into plugin)
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r-- | libdino/src/service/database.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 13be6222..83686424 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -337,7 +337,7 @@ public class Database : Qlite.Database { new_message.body = row[message.body]; new_message.account = get_account_by_id(row[message.account_id]); // TODO dont have to generate acc new new_message.marked = (Message.Marked) row[message.marked]; - new_message.encryption = (Message.Encryption) row[message.encryption]; + new_message.encryption = (Encryption) row[message.encryption]; new_message.real_jid = get_real_jid_for_message(new_message); new_message.notify.connect(on_message_update); @@ -396,7 +396,7 @@ public class Database : Qlite.Database { int64? last_active = row[conversation.last_active]; if (last_active != null) new_conversation.last_active = new DateTime.from_unix_utc(last_active); new_conversation.type_ = (Conversation.Type) row[conversation.type_]; - new_conversation.encryption = (Conversation.Encryption) row[conversation.encryption]; + new_conversation.encryption = (Encryption) row[conversation.encryption]; int? read_up_to = row[conversation.read_up_to]; if (read_up_to != null) new_conversation.read_up_to = get_message_by_id(read_up_to); |