@magicred-1/react-native-lxmf 0.2.49 → 0.2.51

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.
@@ -130,7 +130,7 @@ function GroupModal({ visible, onClose, onCreated, onJoined, createGroup, joinGr
130
130
  const addr = joinAddr.trim().toLowerCase();
131
131
  const key = joinKey.trim().toLowerCase();
132
132
  if (!/^[0-9a-f]{32}$/.test(addr)) { setErr('Address must be 32 hex chars.'); return; }
133
- if (!/^[0-9a-f]{64}$/.test(key)) { setErr('Key must be 64 hex chars (32 bytes).'); return; }
133
+ if (!/^[0-9a-f]{32}$/.test(key)) { setErr('Key must be 32 hex chars (16 bytes).'); return; }
134
134
  const ok = joinGroup(addr, key);
135
135
  if (ok) { onJoined(addr); handleClose(); }
136
136
  else { setErr('Failed to join group.'); }
@@ -190,7 +190,7 @@ function GroupModal({ visible, onClose, onCreated, onJoined, createGroup, joinGr
190
190
  <Text selectable style={S.inviteValue}>{created.name}</Text>
191
191
  <Text style={S.inviteLabel}>Address (32 hex)</Text>
192
192
  <Text selectable style={S.inviteValue}>{created.addrHex}</Text>
193
- <Text style={S.inviteLabel}>Key (64 hex)</Text>
193
+ <Text style={S.inviteLabel}>Key (32 hex)</Text>
194
194
  <Text selectable style={S.inviteValue}>{created.keyHex}</Text>
195
195
  </View>
196
196
  <View style={S.modalBtns}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicred-1/react-native-lxmf",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "LXMF Reticulum mesh networking for React Native + Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",