Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging

This commit is contained in:
RossAscends 2023-11-08 23:24:30 +09:00
commit d8fd4c4767
1 changed files with 15 additions and 3 deletions

View File

@ -6807,9 +6807,21 @@ function swipe_left() { // when we swipe left..but no generation.
}
}
async function branchChat(mesID) {
let name = await createBranch(mesID);
await openCharacterChat(name);
/**
* Creates a new branch from the message with the given ID
* @param {number} mesId Message ID
* @returns {Promise<string>} Branch file name
*/
async function branchChat(mesId) {
const fileName = await createBranch(mesId);
if (selected_group) {
await openGroupChat(selected_group, fileName);
} else {
await openCharacterChat(fileName);
}
return fileName;
}
// when we click swipe right button