lnlink-server 1.2.0 → 1.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lnlink-server",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "electron": "lnlink.js",
@@ -287,9 +287,10 @@ function renderConfiguredView(basicData, settings, torReachable) {
287
287
  console.log("renderConfiguredView called with:", { basicData, settings })
288
288
  const mainContent = document.getElementById("main-content")
289
289
 
290
- // Extract Node ID (Nostr PubKey)
290
+ // Extract Node ID use the actual LND node pubkey from /api/lnd/info.
291
+ // settings.officialNostrPubKey is a remote-registered key, not the local node identity.
291
292
  const nodeId
292
- = settings.officialNostrPubKey || basicData.officialNostrPubKey || "Unknown"
293
+ = basicData.nodeId || settings.officialNostrPubKey || basicData.officialNostrPubKey || "Unknown"
293
294
 
294
295
  // Get Tor status from basicData
295
296
  const enableTor
@@ -581,6 +582,16 @@ window.navigateToManage = function navigateToManage(url, button) {
581
582
  button.classList.add("loading-state")
582
583
  button.innerHTML = `<span class="loading"></span> Loading...`
583
584
 
585
+ // Clear stale localStorage before navigating so the target page doesn't
586
+ // pick up a previous session's owner/node data. Keep cachedVersion.
587
+ try {
588
+ const preserved = localStorage.getItem('cachedVersion')
589
+ localStorage.clear()
590
+ if (preserved !== null) localStorage.setItem('cachedVersion', preserved)
591
+ } catch (e) {
592
+ // non-fatal
593
+ }
594
+
584
595
  // Allow UI to render before navigation
585
596
  requestAnimationFrame(() => {
586
597
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lnlink-server",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "files": [