Sanitize file names on chat renaming

This commit is contained in:
Cohee
2024-09-16 11:02:09 +00:00
parent dcaa8d5e9c
commit 3e2b892aae
2 changed files with 8 additions and 3 deletions

View File

@@ -8828,6 +8828,10 @@ export async function renameChat(oldFileName, newName) {
throw new Error('Server returned an error.');
}
if (data.sanitizedFileName) {
newName = data.sanitizedFileName;
}
if (selected_group) {
await renameGroupChat(selected_group, oldFileName, newName);
}