aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/logic
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-10-11 23:08:50 +0200
committerfiaxh <git@lightrise.org>2021-10-12 17:58:18 +0200
commit8d8dcf5af67ad89c328e67dc2c3469ef90283d9a (patch)
treebb4f055a17e5ef0d1f896b3eeb7522c639fc58fd /plugins/omemo/src/logic
parentc85945ae26cab7eb65c67dbe49ebbf668a028b1c (diff)
downloaddino-8d8dcf5af67ad89c328e67dc2c3469ef90283d9a.tar.gz
dino-8d8dcf5af67ad89c328e67dc2c3469ef90283d9a.zip
Fix compiler warnings ('[GtkChild] fields must be declared as `unowned'')
Diffstat (limited to 'plugins/omemo/src/logic')
-rw-r--r--plugins/omemo/src/logic/decrypt.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/omemo/src/logic/decrypt.vala b/plugins/omemo/src/logic/decrypt.vala
index cfbb9c58..561e557b 100644
--- a/plugins/omemo/src/logic/decrypt.vala
+++ b/plugins/omemo/src/logic/decrypt.vala
@@ -129,13 +129,13 @@ namespace Dino.Plugins.Omemo {
string identity_key = Base64.encode(msg.identity_key.serialize());
bool ok = update_db_for_prekey(identity_id, identity_key, from_jid, sid);
- if (!ok) return null;
+ if (!ok) throw new GLib.Error(-1, 0, "Failed updating db for prekey");
debug("Starting new session for decryption with device from %s/%d", from_jid.to_string(), sid);
SessionCipher cipher = store.create_session_cipher(address);
key = cipher.decrypt_pre_key_signal_message(msg);
// TODO: Finish session
- } else {
+ } else {
debug("Continuing session for decryption with device from %s/%d", from_jid.to_string(), sid);
SignalMessage msg = Plugin.get_context().deserialize_signal_message(encrypted_key);
SessionCipher cipher = store.create_session_cipher(address);