git » sdk » commit 8a7e052

Reaction: Make constructor public to allow external use

author Matthew Wild
2025-04-18 13:50:50 UTC
committer Stephen Paul Weber
2025-09-29 13:41:52 UTC
parent 21145d12ba2d4f860c2a5d944105f3a781216c86

Reaction: Make constructor public to allow external use

It is currently being used by snikket-react, so this change is necessary for
a successful build of that app.

snikket/Reaction.hx +1 -1

diff --git a/snikket/Reaction.hx b/snikket/Reaction.hx
index 3ce7a82..08bc70b 100644
--- a/snikket/Reaction.hx
+++ b/snikket/Reaction.hx
@@ -20,7 +20,7 @@ class Reaction {
 	public final envelopeId: Null<String>;
 
 	@:allow(snikket)
-	private function new(senderId: String, timestamp: String, text: String, envelopeId: Null<String> = null, key: Null<String> = null) {
+	public function new(senderId: String, timestamp: String, text: String, envelopeId: Null<String> = null, key: Null<String> = null) {
 		this.senderId = senderId;
 		this.timestamp = timestamp;
 		this.text = text.replace("\u{fe0f}", "");