stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
428 stars 108 forks source link

Device sync does not maintain WebLN priority #1452

Open huumn opened 2 weeks ago

huumn commented 2 weeks ago

Repro: attach/enable WebLN, attach/enable nwc, give WebLN higher priority, then refresh page.

huumn commented 1 week ago

Instead of not syncing WebLN at all, we probably want to sync it, then on each device test if it's available, then enabled disable on specific devices if it's present.

As is, it doesn't save priority even on the device it was created on.

huumn commented 1 week ago

I'm not sure if it's possible yet, but it might be better to store perDevice wallets in localstorage, then merge with vault.