Fix a few minor bugs

This commit is contained in:
Jonathan Staab 2023-03-03 16:15:49 -06:00
parent e90170d3de
commit 308b5cac63
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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) {