mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#733 Reload selected chat instead of inserting the first one in array
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
|||||||
printCharacters,
|
printCharacters,
|
||||||
name1,
|
name1,
|
||||||
name2,
|
name2,
|
||||||
replaceCurrentChat,
|
|
||||||
setCharacterId,
|
setCharacterId,
|
||||||
setEditedMessageId
|
setEditedMessageId
|
||||||
} from "../script.js";
|
} from "../script.js";
|
||||||
@@ -1177,7 +1176,7 @@ function doRandomChat() {
|
|||||||
resetSelectedGroup();
|
resetSelectedGroup();
|
||||||
setCharacterId(Math.floor(Math.random() * characters.length));
|
setCharacterId(Math.floor(Math.random() * characters.length));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
replaceCurrentChat();
|
reloadCurrentChat();
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -17,7 +17,6 @@ import {
|
|||||||
comment_avatar,
|
comment_avatar,
|
||||||
system_avatar,
|
system_avatar,
|
||||||
system_message_types,
|
system_message_types,
|
||||||
replaceCurrentChat,
|
|
||||||
setCharacterId,
|
setCharacterId,
|
||||||
generateQuietPrompt,
|
generateQuietPrompt,
|
||||||
reloadCurrentChat,
|
reloadCurrentChat,
|
||||||
@@ -203,7 +202,7 @@ function openChat(id) {
|
|||||||
resetSelectedGroup();
|
resetSelectedGroup();
|
||||||
setCharacterId(id);
|
setCharacterId(id);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
replaceCurrentChat();
|
reloadCurrentChat();
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user