git » sdk » commit fbbc3a3

iq must have a type

author Stephen Paul Weber
2026-07-27 16:49:01 UTC
committer Stephen Paul Weber
2026-07-27 16:49:01 UTC
parent e67728c80dc86f566683ef73295ca288466b7145

iq must have a type

borogove/Chat.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index e98fd62..5f5e8bc 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -1621,7 +1621,7 @@ class Channel extends Chat {
 	override public function invite(chat: Chat, threadId: Null<String> = null) {
 		if (isPrivate()) {
 			client.sendStanza(
-				new Stanza("iq", { to: chatId })
+				new Stanza("iq", { to: chatId, type: "set" })
 					.tag("query", { xmlns: "http://jabber.org/protocol/muc#admin" })
 					.tag("item", { affiliation: "member", jid: chat.chatId })
 					.up().up()