Fix a few bugs

This commit is contained in:
Jonathan Staab 2023-02-08 09:40:11 -06:00
parent ede641fc15
commit 1dfad47396
2 changed files with 4 additions and 2 deletions

View File

@ -68,8 +68,10 @@ class Connection {
async disconnect() {
this.status = 'closed'
if (this.nostr) {
try {
await this.nostr.close()
} catch (e) {
// For some reason bugsnag is saying this.nostr is undefined, even if we check it
}
}
}

View File

@ -30,7 +30,7 @@
let replyMentions = without([$user?.pubkey], getDefaultReplyMentions())
let replyContainer = null
const links = $settings.showLinkPreviews ? extractUrls(note.content) || [] : null
const links = $settings.showLinkPreviews ? extractUrls(note.content) || [] : []
const showEntire = anchorId === note.id
const interactive = !anchorId || !showEntire
const relays = getEventRelays(note)