mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix recursive QR auto-execution
This commit is contained in:
@ -1981,13 +1981,13 @@ function doNewChat() {
|
||||
}, 1);
|
||||
}
|
||||
|
||||
function doRandomChat() {
|
||||
async function doRandomChat() {
|
||||
resetSelectedGroup();
|
||||
setCharacterId(Math.floor(Math.random() * characters.length).toString());
|
||||
setTimeout(() => {
|
||||
reloadCurrentChat();
|
||||
}, 1);
|
||||
|
||||
const characterId = Math.floor(Math.random() * characters.length).toString();
|
||||
setCharacterId(characterId);
|
||||
await delay(1);
|
||||
await reloadCurrentChat();
|
||||
return characters[characterId]?.name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user