git » sdk » commit 305477d

Use the attributes

author Stephen Paul Weber
2023-11-01 15:55:11 UTC
committer Stephen Paul Weber
2023-11-08 21:16:35 UTC
parent 2bacbc60c5ca6956b1ba77f85a0defaa3af542c4

Use the attributes

They call the setters automatically

xmpp/MessageSync.hx +2 -2

diff --git a/xmpp/MessageSync.hx b/xmpp/MessageSync.hx
index d07ed31..d899d3f 100644
--- a/xmpp/MessageSync.hx
+++ b/xmpp/MessageSync.hx
@@ -83,8 +83,8 @@ class MessageSync {
 			var msg = ChatMessage.fromStanza(originalMessage, client.jid);
 			if (msg == null) return EventHandled;
 
-			msg.set_serverId(result.attr.get("id"));
-			msg.set_timestamp(timestamp);
+			msg.serverId = result.attr.get("id");
+			msg.timestamp = timestamp;
 
 			messages.push(msg);