From bc5a1d35cbf5c1aca406fa0fe81ca60d6b280bd5 Mon Sep 17 00:00:00 2001 From: mesonium <93607429+mesonium@users.noreply.github.com> Date: Sat, 29 Jul 2023 14:02:38 +0200 Subject: fix: Add x node to MUC PM stanza (#1462) Add tag in MUC-PMs to support better Carbon delivery in compliance with XEP-0045 v1.28 and above. Fixes #1306 --- xmpp-vala/src/module/xep/0045_muc/module.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmpp-vala') diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index 46abe303..2d7ddd14 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -54,6 +54,11 @@ public enum Feature { UNSECURED } +public static void add_muc_pm_message_stanza_x_node(MessageStanza message_stanza) { + StanzaNode x_node = new StanzaNode.build("x", "http://jabber.org/protocol/muc#user").add_self_xmlns(); + message_stanza.stanza.put_node(x_node); +} + public class JoinResult { public MucEnterError? muc_error; public string? stanza_error; -- cgit v1.2.3-70-g09d2