Skip to content

QR code fallbacks don't work for anon if WebLN enabled #1758

Open
@ekzyis

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

If the WebLN wallet was enabled and we switch to anon, anon will also use the WebLN wallet because it only looks at wallet:webln (not scoped to user id).

However, if the WebLN prompt was canceled, we won't show a QR code because anon can't retry invoices.

This means that following attempts will simply do nothing and anon looks broken because WebLN prompts don't open again once they were canceled. Only a page reload brings back the WebLN prompt but still not possible to fallback to a QR code.

I think anons should be able to use WebLN but that we only try it if it was enabled while signed in is weird.

Screenshots

No response

Steps To Reproduce

  1. Enable WebLN wallet
  2. Switch to anon
  3. Try to post something
  4. Cancel WebLN prompt

Expected behavior

Anon can fallback to QR code if WebLN enabled or gets immediately shown a QR code

Logs

No response

Device information

No response

Additional context

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions