mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Sanitize file names on chat renaming
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user