diff --git a/src/lib/components/chat/Settings/ArchivedChats.svelte b/src/lib/components/chat/Settings/ArchivedChats.svelte index e66b787bed..5d52b248ed 100644 --- a/src/lib/components/chat/Settings/ArchivedChats.svelte +++ b/src/lib/components/chat/Settings/ArchivedChats.svelte @@ -304,99 +304,128 @@ {$i18n.t('You have no archived conversations.')} {:else} -
- - -
+
+
+
+ +
+ +
+
-
- {#each chatList as chat (chat.id)} -
- { - event.preventDefault(); - showSettings.set(false); - goto(`/c/${chat.id}`); - }} - > - {chat?.title} - - - + +
+ - {/if} + {#if $user?.role === 'admin' || ($user?.permissions?.chat?.delete ?? true)} + + + + {/if} +
-
- {/each} + {/each} +
{#if !allChatsLoaded}