@decentnetwork/beagle 0.1.116 → 0.1.117

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.
@@ -1,4 +1,4 @@
1
- window.__DK_UI_VERSION="0.1.116";
1
+ window.__DK_UI_VERSION="0.1.117";
2
2
  "use strict";
3
3
  (() => {
4
4
  // packages/beagle-ui/dist/beagle-ui.js
@@ -7099,8 +7099,11 @@ ${peer.address}`
7099
7099
  /* @__PURE__ */ React.createElement(Icon, { name: "share", size: 16, stroke: 2, color: "var(--accent)" })
7100
7100
  );
7101
7101
  React.useEffect(() => {
7102
- if (!phone && !activeId && peers.length)
7103
- setActiveId(peers[0].id);
7102
+ if (phone || activeId)
7103
+ return;
7104
+ const first = (peers || []).find((p) => !p.app);
7105
+ if (first)
7106
+ setActiveId(first.id);
7104
7107
  }, [peers, activeId, phone]);
7105
7108
  React.useEffect(() => {
7106
7109
  if (!phone)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/beagle",
3
- "version": "0.1.116",
3
+ "version": "0.1.117",
4
4
  "description": "Beagle — P2P chat, file transfer and calls for regular users, on the Decent Network. No admin privilege required.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,7 +35,7 @@
35
35
  "yargs": "^17.7.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@decentnetwork/beagle-ui": "^0.2.30",
38
+ "@decentnetwork/beagle-ui": "^0.2.31",
39
39
  "@types/js-yaml": "^4.0.9",
40
40
  "@types/node": "^20.11.0",
41
41
  "@types/yargs": "^17.0.32",