Fix new chats with v2 imports

This commit is contained in:
Cohee
2023-07-14 13:12:46 +03:00
parent 6f33cc6fea
commit 5812e34dcb

View File

@@ -761,7 +761,7 @@ function convertToV2(char) {
tags: char.tags,
});
result.chat = char.chat;
result.chat = char.chat ?? humanizedISO8601DateTime();
result.create_date = char.create_date;
return result;
}
@@ -820,6 +820,8 @@ function readFromV2(char) {
char[charField] = v2Value;
});
char['chat'] = char['chat'] ?? humanizedISO8601DateTime();
return char;
}