This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-28 10:04:06 -05:00
1 parent aae2fce173
commit 7b1895ec8a
3 files changed
+83 -59

No files matched your search

+14 -1
View File
@@ -274,7 +274,20 @@
>
<PaneGroup direction="horizontal" class="w-full h-full">
<Pane defaultSize={50} minSize={50} class="h-full flex flex-col w-full relative">
<Navbar {channel} />
<Navbar
{channel}
onPin={(messageId, pinned) => {
messages = messages.map((message) => {
if (message.id === messageId) {
return {
...message,
is_pinned: pinned
};
}
return message;
});
}}
/>
<div class="flex-1 overflow-y-auto">
{#if channel}