fix: preserve chat controls on chat remount

This commit is contained in:
Algorithm5838 2026-05-10 12:23:38 +03:00
parent b0a56375d2
commit c031b53cb1

View file

@ -2820,7 +2820,7 @@
};
const saveControls = async () => {
if (!$chatId || $temporaryChatEnabled) return;
if (loading || !$chatId || $temporaryChatEnabled) return;
await updateChatById(localStorage.token, $chatId, { params, files: chatFiles }).catch((err) =>
console.error('[controls autosave]', err)
);