git » sdk » commit 51b159e

MUC PM uses fulljid as sender also

author Stephen Paul Weber
2025-12-28 03:26:47 UTC
committer Stephen Paul Weber
2025-12-28 03:26:47 UTC
parent cdd1faf32df925fd760b8a0db2b248c6c893b9ac

MUC PM uses fulljid as sender also

borogove/Message.hx +1 -1

diff --git a/borogove/Message.hx b/borogove/Message.hx
index e36c186..4f396e7 100644
--- a/borogove/Message.hx
+++ b/borogove/Message.hx
@@ -75,7 +75,7 @@ class Message {
 		if (msg.type == MessageChat && stanza.getChild("x", "http://jabber.org/protocol/muc#user") != null) {
 			msg.type = MessageChannelPrivate;
 		}
-		msg.senderId = (isGroupchat ? msg.from : msg.from?.asBare())?.asString();
+		msg.senderId = (msg.type == MessageChannel || msg.type == MessageChannelPrivate ? msg.from : msg.from?.asBare())?.asString();
 		final localJidBare = localJid.asBare();
 		final domain = localJid.domain;
 		final to = stanza.attr.get("to");