aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/src/logic/decrypt.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2026-05-30 16:10:36 +0200
committerMarvin W <git@larma.de>2026-06-07 23:13:07 +0200
commit158cff3098e9370696f9250a199c78e4f2d18ce0 (patch)
treebd05a55e5419ef2307c7a7f4d7665f7449c8e8b1 /plugins/omemo/src/logic/decrypt.vala
parentafcf44928748f7ac049f1ba9f5c51c6dedbf4ec2 (diff)
Add JID interning
Diffstat (limited to 'plugins/omemo/src/logic/decrypt.vala')
-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 9e5b739a..2861b42f 100644
--- a/plugins/omemo/src/logic/decrypt.vala
+++ b/plugins/omemo/src/logic/decrypt.vala
@@ -95,7 +95,7 @@ namespace Dino.Plugins.Omemo {
string identity_key = Base64.encode(msg.identity_key.serialize());
foreach (Row row in db.identity_meta.get_with_device_id(identity_id, data.sid).with(db.identity_meta.identity_key_public_base64, "=", identity_key)) {
try {
- possible_jids.add(new Jid(row[db.identity_meta.address_name]));
+ possible_jids.add(Jid.from_string(row[db.identity_meta.address_name]));
} catch (InvalidJidError e) {
warning("Ignoring invalid jid from database: %s", e.message);
}
@@ -104,7 +104,7 @@ namespace Dino.Plugins.Omemo {
// If we don't know the device name (MUC history w/o MAM), test decryption with all keys with fitting device id
foreach (Row row in db.identity_meta.get_with_device_id(identity_id, data.sid)) {
try {
- possible_jids.add(new Jid(row[db.identity_meta.address_name]));
+ possible_jids.add(Jid.from_string(row[db.identity_meta.address_name]));
} catch (InvalidJidError e) {
warning("Ignoring invalid jid from database: %s", e.message);
}