vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
441 stars 33 forks source link

[BUG] Mulitple invoices in a single note/post show up with one QR code #58

Open Sakhalinfox opened 1 year ago

Sakhalinfox commented 1 year ago

Issue Description

If multiple invoices are added in a post/note/reply they show up with only a single QR code when using the -l or --lnqr parameter to view QR codes for LN invoices.

Steps to Reproduce

  1. Run Nostr_Console with -l or --lnqr parameter
  2. Create a new Post with multiple LN Invoices (In my case three LN Invoices) separated by a single space
  3. View your posts / replies in which the multiple LN Invoices exist.
  4. Only one LNQR is displayed instead of three.
  5. View the same on Damus iOS client and it shows up as three LN invoices to pay.

Screenshots from Nostr_Console: image image

Screenshots from Damus iOS for comparison of expected output: image

Example reproduction details Event ID: d13f320ee9f9f7a1bcb5030d1edded59421445266cab2cb76ebbad2c238c02dc Note ID: note16ylnyrhfl8m6r094qvx3ah0dt9ppg3fxdj4jedmwhwkjcguvqtwqyc5d2r

Expected result

Display multiple QR codes depending on the number of LN invoices pasted in a note/post/reply.

Test Environment Details