diff --git a/ROADMAP.md b/ROADMAP.md index f345e580..24adff64 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -49,7 +49,9 @@ - [ ] https://media.nostr.band/ - [ ] Make the note relays button modal make sense, one relay with no explanation is not good - [ ] Linkify invoices -- [ ] Linkify bech32 entities w/ NIP 21 https://github.com/nostr-protocol/nips/blob/master/21.md +- [ ] Linkify bech32 entities w/ NIP 21 + - https://github.com/nostr-protocol/nips/blob/master/21.md + - https://github.com/nostr-protocol/nips/issues/319 - [ ] Person zaps - [ ] Collapsible thread view - [ ] Split notifications into replies + everything else, or add filters diff --git a/src/app/ui.ts b/src/app/ui.ts index 91995fc3..6bec765b 100644 --- a/src/app/ui.ts +++ b/src/app/ui.ts @@ -85,7 +85,7 @@ export const modal = { // characters long, respectively. Put the threshold a little lower in case // someone accidentally enters a key with the last few digits missing const redactErrorInfo = info => - JSON.parse(JSON.stringify(info) .replace(/\w{60}\w+/g, '[REDACTED]')) + JSON.parse(JSON.stringify(info || null).replace(/\w{60}\w+/g, '[REDACTED]')) // Wait for bugsnag to be started in main setTimeout(() => { @@ -116,7 +116,8 @@ const session = Math.random().toString().slice(2) export const logUsage = async name => { // Hash the user's pubkey so we can identify unique users without knowing // anything about them - const ident = hash(user.getPubkey()) + const pubkey = user.getPubkey() + const ident = pubkey ? hash(pubkey) : 'unknown' const {dufflepudUrl, reportAnalytics} = user.getSettings() if (reportAnalytics) {