mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging
This commit is contained in:
@ -6807,9 +6807,21 @@ function swipe_left() { // when we swipe left..but no generation.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function branchChat(mesID) {
|
/**
|
||||||
let name = await createBranch(mesID);
|
* Creates a new branch from the message with the given ID
|
||||||
await openCharacterChat(name);
|
* @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
|
// when we click swipe right button
|
||||||
|
Reference in New Issue
Block a user