| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-12 04:24:43 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-12 04:24:43 UTC |
| parent | a39180353c81f460bef50ecc104b9d1565842936 |
| snikket/Chat.hx | +1 | -1 |
diff --git a/snikket/Chat.hx b/snikket/Chat.hx index 73e19e7..6ae69d5 100644 --- a/snikket/Chat.hx +++ b/snikket/Chat.hx @@ -339,7 +339,7 @@ abstract class Chat { final conf = item.getChild("conference", "urn:xmpp:bookmarks:1"); final fn = conf.attr.get("name"); if (fn != null) setDisplayName(fn); - uiState = (conf.attr.get("autojoin") == "1" || conf.attr.get("autojoin") == "true") ? Open : Closed; + 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" }); }