git » sdk » commit be4c52a

Don't allow bookmark echo to change out of Creating status

author Stephen Paul Weber
2026-11-17 03:04:25 UTC
committer Stephen Paul Weber
2026-11-17 03:04:25 UTC
parent d807ad4c437bd61d86030c45875e4d2ff618cd5e

Don't allow bookmark echo to change out of Creating status

borogove/Chat.hx +3 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 1100329..f2c6bf4 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -618,7 +618,9 @@ abstract class Chat extends EventEmitter {
 		final conf = item.getChild("conference", "urn:xmpp:bookmarks:1");
 		final fn = conf.attr.get("name");
 		if (fn != null) displayName = fn;
-		uiState = (conf.attr.get("autojoin") == "1" || conf.attr.get("autojoin") == "true") ? (uiState == Pinned ? Pinned : Open) : Closed;
+		if (uiState != Creating) {
+			uiState = (conf.attr.get("autojoin") == "1" || conf.attr.get("autojoin") == "true") ? (uiState == Pinned ? Pinned : Open) : Closed;
+		}
 		extensions = conf.getChild("extensions") ?? new Stanza("extensions", { xmlns: "urn:xmpp:bookmarks:1" });
 	}