mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove chat save on pick macro
This commit is contained in:
@ -189,10 +189,10 @@ function pickReplace(input, rawContent, emptyListPlaceholder = '') {
|
|||||||
const pickPattern = /{{pick\s?::?([^}]+)}}/gi;
|
const pickPattern = /{{pick\s?::?([^}]+)}}/gi;
|
||||||
|
|
||||||
// We need to have a consistent chat hash, otherwise we'll lose rolls on chat file rename or branch switches
|
// We need to have a consistent chat hash, otherwise we'll lose rolls on chat file rename or branch switches
|
||||||
|
// No need to save metadata here - branching and renaming will implicitly do the save for us, and until then loading it like this is consistent
|
||||||
const chatIdHash = chat_metadata['chat_id_hash'];
|
const chatIdHash = chat_metadata['chat_id_hash'];
|
||||||
if (!chatIdHash) {
|
if (!chatIdHash) {
|
||||||
chat_metadata['chat_id_hash'] = getStringHash(getCurrentChatId());
|
chat_metadata['chat_id_hash'] = getStringHash(chat_metadata['main_chat'] ?? getCurrentChatId());
|
||||||
saveMetadataDebounced();
|
|
||||||
}
|
}
|
||||||
const rawContentHash = getStringHash(rawContent);
|
const rawContentHash = getStringHash(rawContent);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user