mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 19:46:42 +00:00
Fix a few bugs
This commit is contained in:
parent
ede641fc15
commit
1dfad47396
@ -68,8 +68,10 @@ class Connection {
|
|||||||
async disconnect() {
|
async disconnect() {
|
||||||
this.status = 'closed'
|
this.status = 'closed'
|
||||||
|
|
||||||
if (this.nostr) {
|
try {
|
||||||
await this.nostr.close()
|
await this.nostr.close()
|
||||||
|
} catch (e) {
|
||||||
|
// For some reason bugsnag is saying this.nostr is undefined, even if we check it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
let replyMentions = without([$user?.pubkey], getDefaultReplyMentions())
|
let replyMentions = without([$user?.pubkey], getDefaultReplyMentions())
|
||||||
let replyContainer = null
|
let replyContainer = null
|
||||||
|
|
||||||
const links = $settings.showLinkPreviews ? extractUrls(note.content) || [] : null
|
const links = $settings.showLinkPreviews ? extractUrls(note.content) || [] : []
|
||||||
const showEntire = anchorId === note.id
|
const showEntire = anchorId === note.id
|
||||||
const interactive = !anchorId || !showEntire
|
const interactive = !anchorId || !showEntire
|
||||||
const relays = getEventRelays(note)
|
const relays = getEventRelays(note)
|
||||||
|
Loading…
Reference in New Issue
Block a user