Fix a few bugs

This commit is contained in:
Jon Staab 2024-05-27 10:12:10 -07:00
parent d9e8e5d8ed
commit fc0dede50c
3 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,7 @@
let prevPage
$: isFeedPage = $page.path.match(/^\/(notes)?$/) && !$env.FORCE_GROUP
$: isFeedPage = $page?.path.match(/^\/(notes)?$/) && !$env.FORCE_GROUP
$: {
if ($modal) {

View File

@ -84,7 +84,7 @@
confirmMessage = null
}
let confirmMessage, ctrl
let confirmMessage, ctrl, unsubscribe
onMount(() => {
markChannelRead(channelId)
@ -136,7 +136,9 @@
{#await decryptContent(message)}
<!-- pass -->
{:then note}
<NoteContent showEntire {note} />
{#if note.content}
<NoteContent showEntire {note} />
{/if}
{/await}
</div>
<small

View File

@ -264,7 +264,7 @@ export const feedLoader = new FeedLoader<TrustedEvent>({
)
}
},
requestDVM: async ({kind, tags, onEvent, ...request}) => {
requestDVM: async ({kind, onEvent, tags = [], ...request}) => {
let relays
if (request.relays?.length > 0) {
relays = hints.fromRelays(request.relays).getUrls()