@decentnetwork/beagle-ui 0.2.30 → 0.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/beagle-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- export const BEAGLE_UI_VERSION = "0.2.30";
1
+ export const BEAGLE_UI_VERSION = "0.2.31";
2
2
  // src/icons.jsx
3
3
  var ICON_PATHS = {
4
4
  // ---- tab bar (the four must feel like one set) ----
@@ -7139,8 +7139,11 @@ function DkApp() {
7139
7139
  /* @__PURE__ */ React.createElement(Icon, { name: "share", size: 16, stroke: 2, color: "var(--accent)" })
7140
7140
  );
7141
7141
  React.useEffect(() => {
7142
- if (!phone && !activeId && peers.length)
7143
- setActiveId(peers[0].id);
7142
+ if (phone || activeId)
7143
+ return;
7144
+ const first = (peers || []).find((p) => !p.app);
7145
+ if (first)
7146
+ setActiveId(first.id);
7144
7147
  }, [peers, activeId, phone]);
7145
7148
  React.useEffect(() => {
7146
7149
  if (!phone)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/beagle-ui",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "The Beagle chat UI, minus the machine it runs on — shared by the desktop install and the browser build.",
5
5
  "license": "MIT",
6
6
  "type": "module",