beta12 for porting old format

This commit is contained in:
marlon-erler
2026-09-26 16:02:41 +02:00
parent eaf40d8e37
commit 5a647da2de
7 changed files with 11 additions and 6 deletions
+3 -1
View File
@@ -1751,11 +1751,12 @@
};
// load
this.loadInfo = () => {
const info = this.storageModel.readStringifiable(
let info = this.storageModel.readStringifiable(
this.getInfoPath(),
ChatInfoReference
);
this.info = info || _ChatModel.generateChatInfo("0", "0", "standard" /* Standard */);
this.storeInfo();
};
this.handleInfo = (info) => {
this.info = info;
@@ -1958,6 +1959,7 @@
this.handleFileContent(fileContent);
};
this.handleFileContent = (fileContent) => {
console.log(fileContent.type);
if (fileContent.type == "chat-info") {
if (checkMatchesObjectStructure(fileContent, ChatInfoReference) == false) return;
this.chatModel.handleInfo(fileContent);