aboutsummaryrefslogtreecommitdiff
path: root/plugins/openpgp/src/stream_flag.vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2026-06-07 21:52:00 +0200
committerMarvin W <git@larma.de>2026-06-07 23:13:07 +0200
commit9b7b0d98cb9a41e8bd06ae627474d4e1e97139e6 (patch)
tree61a36db5611fb57f9681c1c239ffa05931c7dc07 /plugins/openpgp/src/stream_flag.vala
parent8c05d7b066f03d0c024cc0701b69279fffb4e0cf (diff)
OpenPGP: Process signatures on presences only once needed
- Incoming signatures are stored in the database and processed when needed (to send PGP encrypted messages or to display them in the contact details) - Outgoing signatures are stored in the database and cached until the key is changed
Diffstat (limited to 'plugins/openpgp/src/stream_flag.vala')
-rw-r--r--plugins/openpgp/src/stream_flag.vala21
1 files changed, 0 insertions, 21 deletions
diff --git a/plugins/openpgp/src/stream_flag.vala b/plugins/openpgp/src/stream_flag.vala
deleted file mode 100644
index df598625..00000000
--- a/plugins/openpgp/src/stream_flag.vala
+++ /dev/null
@@ -1,21 +0,0 @@
-using Gee;
-
-using Xmpp;
-
-namespace Dino.Plugins.OpenPgp {
-
-public class Flag : XmppStreamFlag {
- public static FlagIdentity<Flag> IDENTITY = new FlagIdentity<Flag>(NS_URI, "pgp");
-
- public HashMap<Jid, string> key_ids = new HashMap<Jid, string>(Jid.hash_bare_func, Jid.equals_bare_func);
-
- public string? get_key_id(Jid jid) { return key_ids[jid]; }
-
- public void set_key_id(Jid jid, string key) { key_ids[jid] = key; }
-
- public override string get_ns() { return NS_URI; }
-
- public override string get_id() { return IDENTITY.id; }
-}
-
-}