git » sdk » commit 87795e8

Reaction: Make constructor public to allow external use

author Matthew Wild
2025-04-18 13:50:50 UTC
committer Matthew Wild
2025-04-18 13:50:50 UTC
parent 1beec3289fdc46e952a1b20c23d5282b61cd6cd6

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 e957417..7662a76 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}", "");