git » sdk » commit ffed417

OMEMO: Add store hint for key exchange stanza

author Matthew Wild
2025-04-21 12:19:59 UTC
committer Matthew Wild
2025-04-21 12:19:59 UTC
parent 46c350a49525fa538f006ab5ebc75aac8097be24

OMEMO: Add store hint for key exchange stanza

snikket/OMEMO.hx +1 -1

diff --git a/snikket/OMEMO.hx b/snikket/OMEMO.hx
index ec78b98..bb00538 100644
--- a/snikket/OMEMO.hx
+++ b/snikket/OMEMO.hx
@@ -769,7 +769,7 @@ class OMEMO {
 			final newStanza = new Stanza("message", { type: "chat" });
 			header.removeChildren("payload");
 			newStanza.addChild(header);
-			// FIXME: Probably need to add a store hint here
+			newStanza.tag("store", { xmlns: "urn:xmpp:hints" }).up();
 			return newStanza;
 		});