From 5bf8b829b7f7f2fb6e2b920eed8eace6a801157c Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 23 Oct 2026 16:46:01 +0200 Subject: omemo: Hand direct database access to libomemo Previously used an in-memory map to represent the database content and kept those in sync --- main/src/plugins/omemo/protocol/bundle.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/src/plugins/omemo/protocol/bundle.vala') diff --git a/main/src/plugins/omemo/protocol/bundle.vala b/main/src/plugins/omemo/protocol/bundle.vala index b7e2b9cf..abd5269f 100644 --- a/main/src/plugins/omemo/protocol/bundle.vala +++ b/main/src/plugins/omemo/protocol/bundle.vala @@ -58,6 +58,10 @@ public class Bundle { return list; }} + public bool is_valid { get { + return signed_pre_key_id != -1 && signed_pre_key != null && signed_pre_key_signature != null && identity_key != null; + }} + public class PreKey { private StanzaNode node; -- cgit v1.3