- {#if channel?.type === 'dm'}
- {#if channel?.users}
- {@const channelMembers = channel.users.filter((u) => u.id !== $user?.id)}
-
- {#each channelMembers.slice(0, 2) as u, index}
-

- {/each}
-
- {#if channelMembers.length === 1}
-
-
- {#if channelMembers[0]?.is_active}
-
- {/if}
-
-
-
- {/if}
-
- {:else}
-
- {/if}
- {:else}
-
- {#if isPublicChannel(channel)}
-
- {:else}
-
- {/if}
-
+ {#if channel?.type === 'dm'}
+ {#if !channel?.users}
+
{/if}
-
{#if channel?.name}
diff --git a/src/lib/components/layout/Sidebar/ChatItem.svelte b/src/lib/components/layout/Sidebar/ChatItem.svelte
index 1a85ad44f5..0ad2f9afde 100644
--- a/src/lib/components/layout/Sidebar/ChatItem.svelte
+++ b/src/lib/components/layout/Sidebar/ChatItem.svelte
@@ -50,6 +50,7 @@
import DragGhost from '$lib/components/common/DragGhost.svelte';
import Spinner from '$lib/components/common/Spinner.svelte';
import ChatHoverPreview from './ChatHoverPreview.svelte';
+ import ProfilePreview from '$lib/components/channel/Messages/Message/ProfilePreview.svelte';
import ChatIcon from './icons/Chat.svelte';
import MoreHorizontalIcon from './icons/MoreHorizontal.svelte';
import SparklesIcon from './icons/Sparkles.svelte';
@@ -107,6 +108,9 @@
let focusWithin = false;
let menuOpen = false;
let openPreview = false;
+ let openProfilePreview = false;
+
+ $: if (openProfilePreview) openPreview = false;
const closeHoverPreview = () => {
if (openPreview) {
@@ -514,21 +518,6 @@
{#snippet chatItemContent()}
- {#if ownerUserId}
-
-
{
- if (!e.currentTarget.src.endsWith('/static/favicon.png')) {
- e.currentTarget.src = `${WEBUI_BASE_URL}/static/favicon.png`;
- }
- }}
- />
-
- {/if}
-
{#if active}
@@ -645,44 +634,68 @@
}}
/>
- {:else if $mobile}
-
{:else}
-
-
+
{/if}
{#if !readonly}