git » sdk » commit 74360d4

Stub in a to on builder

author Stephen Paul Weber
2025-03-23 02:56:54 UTC
committer Stephen Paul Weber
2025-03-23 02:56:54 UTC
parent 0a91f133068b56fa3bd8b7b1ccab8150cde76e99

Stub in a to on builder

For the correction case, we must have some kind of to set for the
version history

snikket/Chat.hx +1 -0

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index 6098826..fb58b58 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -737,6 +737,7 @@ class DirectChat extends Chat {
 		message.sender = message.from.asBare();
 		message.replyTo = [message.sender];
 		message.recipients = getParticipants().map((p) -> JID.parse(p));
+		message.to = message.recipients[0];
 		return message;
 	}