git » sdk » commit c321786

OMEMO: Add store hint for key exchange stanza

author Matthew Wild
2025-04-21 12:19:59 UTC
committer Stephen Paul Weber
2025-09-29 13:43:04 UTC
parent 186931ba51da21076475ccc571a1c3af49bad72c

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;
 		});