fix: deleting another folder in the sidebar keeps the open folder's page (#32697)

This commit is contained in:
G30 2026-10-20 13:08:58 -04:00 • committed by GitHub
parent 12ed28f6b8
commit db9aa8c9c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1404,7 +1404,9 @@
{shiftKey}
onFolderUnreadCounts={applyFolderUnreadCounts}
onDelete={(folderId) => {
selectedFolder.set(null);
let id = $selectedFolder?.id;
while (id && id !== folderId) id = folders[id]?.parent_id;
if (id) selectedFolder.set(null);
initChatList();
}}
on:update={() => {