From a7d81ebdcfcc5bdc72f6ba7e9d3b5bcfb1036733 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 23 Sep 2026 23:32:23 -0400 Subject: [PATCH] fix: keep a user's chats listed in the admin chats view after deleting one (#30604) --- src/lib/components/admin/Users/UserList/UserChatsModal.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/admin/Users/UserList/UserChatsModal.svelte b/src/lib/components/admin/Users/UserList/UserChatsModal.svelte index 4ae550d0c9..f19ae60c39 100644 --- a/src/lib/components/admin/Users/UserList/UserChatsModal.svelte +++ b/src/lib/components/admin/Users/UserList/UserChatsModal.svelte @@ -90,7 +90,9 @@ }; const init = async () => { + page = 1; chatList = await getChatListByUserId(localStorage.token, user.id, page, filter); + allChatsLoaded = (chatList ?? []).length === 0; }; $: if (show) {