git » sdk » commit 8054dd1

Arguments for Chat#block are optional

author Stephen Paul Weber
2025-06-24 17:46:34 UTC
committer Stephen Paul Weber
2025-06-24 17:46:34 UTC
parent cac2be4e172e1c9104063808af7f08f58442be6f

Arguments for Chat#block are optional

snikket/Chat.hx +1 -1

diff --git a/snikket/Chat.hx b/snikket/Chat.hx
index 1d10c6c..daa85be 100644
--- a/snikket/Chat.hx
+++ b/snikket/Chat.hx
@@ -301,7 +301,7 @@ abstract class Chat {
 	/**
 		Block this chat so it will not re-open
 	**/
-	public function block(reportSpam: Null<ChatMessage>, onServer: Bool): Void {
+	public function block(reportSpam: Null<ChatMessage> = null, onServer: Bool = true): Void {
 		if (reportSpam != null && !onServer) throw "Can't report SPAM if not sending to server";
 		isBlocked = true;
 		if (uiState == Closed) {