git » sdk » commit 8c9a2b8

Set senderId direction instead of old sender attribute

author Stephen Paul Weber
2025-03-24 16:19:50 UTC
committer Stephen Paul Weber
2025-03-24 16:19:50 UTC
parent 0de12f58f7af198d054634bc6b34cca0165fad91

Set senderId direction instead of old sender attribute

snikket/Chat.hx +1 -1

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index 1c2db8d..d85150c 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -1249,7 +1249,7 @@ class Channel extends Chat {
 	private function prepareIncomingMessage(message:ChatMessageBuilder, stanza:Stanza) {
 		message.syncPoint = !syncing();
 		if (message.type == MessageChat) message.type = MessageChannelPrivate;
-		message.sender = JID.parse(stanza.attr.get("from")); // MUC always needs full JIDs
+		message.senderId = stanza.attr.get("from"); // MUC always needs full JIDs
 		if (message.senderId == getFullJid().asString()) {
 			message.recipients = message.replyTo;
 			message.direction = MessageSent;