Support multiple chats per group. Fix A/N metadata not saving for groups.

This commit is contained in:
SillyLossy
2023-05-02 16:01:23 +03:00
parent dce309f0d9
commit 28627e7e51
6 changed files with 296 additions and 174 deletions

View File

@ -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() {