Fix chat list responsiveness

This commit is contained in:
Jon Staab
2026-01-06 14:52:13 -08:00
parent 619cf2e134
commit e5d1b82a9d
4 changed files with 22 additions and 16 deletions
+3 -7
View File
@@ -2,9 +2,9 @@ import type {Page} from "@sveltejs/kit"
import {get} from "svelte/store"
import * as nip19 from "nostr-tools/nip19"
import {goto} from "$app/navigation"
import {nthEq, remove, sleep} from "@welshman/lib"
import {nthEq, sleep} from "@welshman/lib"
import type {TrustedEvent} from "@welshman/util"
import {pubkey, tracker, loadRelay} from "@welshman/app"
import {tracker, loadRelay} from "@welshman/app"
import {scrollToEvent} from "@lib/html"
import {identity} from "@welshman/lib"
import {
@@ -55,11 +55,7 @@ export const goToSpace = async (url: string) => {
}
}
export const makeChatPath = (pubkeys: string[]) => {
const id = makeChatId(remove(pubkey.get()!, pubkeys))
return `/chat/${id}`
}
export const makeChatPath = (pubkeys: string[]) => `/chat/${makeChatId(pubkeys)}`
export const makeRoomPath = (url: string, h: string) => `/spaces/${encodeRelay(url)}/${h}`