diff --git a/snikket/ChatMessage.hx b/snikket/ChatMessage.hx index 253f918..06a2aac 100644 --- a/snikket/ChatMessage.hx +++ b/snikket/ChatMessage.hx @@ -449,6 +449,9 @@ class ChatMessage { } } if (body != null) stanza.textTag("body", body); + for (payload in payloads) { + stanza.addDirectChild(Element(payload)); + } return stanza; }