git » sdk » commit c363c2d

Setting to blank string reverts to chatId

author Stephen Paul Weber
2026-05-27 18:06:25 UTC
committer Stephen Paul Weber
2026-05-27 18:06:25 UTC
parent 76d85c31daa30b830003ca0167f1b87223ccd6df

Setting to blank string reverts to chatId

Rather than actually blank...

borogove/Chat.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 456ab18..1c9a0b3 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -669,7 +669,7 @@ abstract class Chat extends EventEmitter {
 		@param displayName String to use as display name
 	**/
 	public function setDisplayName(displayName: String) {
-		this.displayName = displayName;
+		this.displayName = displayName == "" ? chatId : displayName;
 		bookmark();
 	}