mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Support multiple chats per group. Fix A/N metadata not saving for groups.
This commit is contained in:
@ -51,13 +51,13 @@ function hasCustomBackground() {
|
||||
function saveBackgroundMetadata(file) {
|
||||
const context = getContext();
|
||||
context.chatMetadata[METADATA_KEY] = file;
|
||||
context.saveChat();
|
||||
context.saveMetadata();
|
||||
}
|
||||
|
||||
function removeBackgroundMetadata() {
|
||||
const context = getContext();
|
||||
delete context.chatMetadata[METADATA_KEY];
|
||||
context.saveChat();
|
||||
context.saveMetadata();
|
||||
}
|
||||
|
||||
function setCustomBackground() {
|
||||
|
Reference in New Issue
Block a user