feat(frontend): profiles chip in the feed shows name, username, photo and title changes

This commit is contained in:
hh committed 2026-10-19 03:25:48 +00:00
1 parent 8e0f828dd4
commit 98dda99c5c
9 files changed
+181 -14

No files matched your search

@@ -11,6 +11,7 @@
feed,
messageHref,
} from "#lib/stores/feed.svelte.js";
import { ui } from "#lib/stores/ui.svelte.js";
import { goto } from "$app/navigation";
import { page } from "$app/state";
@@ -20,8 +21,11 @@
let { filter }: Props = $props();
function open(item: FeedItem, messageId: number) {
goto(messageHref(page.url, item.chat.chat_id, messageId));
async function open(item: FeedItem, messageId: number) {
await goto(messageHref(page.url, item.chat.chat_id, messageId));
if (item.kind === "profile" && !messageId) {
ui.openPanel("profile");
}
}
onMount(() => {