git » sdk » commit 7f3238b

Message to MUC should be type=groupchat

author Stephen Paul Weber
2023-11-30 00:45:19 UTC
committer Stephen Paul Weber
2023-12-11 15:59:52 UTC
parent e17e687dd27b5e243eebadff3dd119d77151f228

Message to MUC should be type=groupchat

xmpp/Chat.hx +1 -1

diff --git a/xmpp/Chat.hx b/xmpp/Chat.hx
index 5751e47..a7eb2df 100644
--- a/xmpp/Chat.hx
+++ b/xmpp/Chat.hx
@@ -558,7 +558,7 @@ class Channel extends Chat {
 		final upTo = message.serverId;
 		_unreadCount = 0; // TODO
 		if (upTo == null) return; // Can't mark as read with no id
-		final stanza = new Stanza("message", { to: chatId, id: ID.long() })
+		final stanza = new Stanza("message", { to: chatId, id: ID.long(), type: "groupchat" })
 			.tag("displayed", { xmlns: "urn:xmpp:chat-markers:0", id: upTo }).up();
 		if (message.threadId != null) {
 			stanza.textTag("thread", message.threadId);