From af50754affda1531b5363f2c7a8ad634a5e2bfec Mon Sep 17 00:00:00 2001 From: dtonon Date: Thu, 21 May 2026 22:53:11 +0100 Subject: [PATCH] Show latest discussions in /contacts --- src/routes/+layout.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e179831..5b96522 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -69,12 +69,14 @@ ); const contactsActive = $derived(page.url.pathname === "/contacts"); - // Article pages (both modes) and the full-mode landing have no single room to - // chat in, so they render the latest-discussions panel instead of room chat. - // The simple-mode home keeps its room chat, like every full-mode room. + // Standalone pages (articles, contacts) and the full-mode landing have no + // single room to chat in, so they render the latest-discussions panel instead + // of room chat. The simple-mode home keeps its room chat, like every room. const isArticle = $derived(page.url.pathname.startsWith("/resource/")); const showDiscussions = $derived( - isArticle || (mode === "full" && page.url.pathname === "/"), + isArticle || + contactsActive || + (mode === "full" && page.url.pathname === "/"), ); const showChat = $derived(chatEnabled && !showDiscussions);