Merge pull request #1335 from bdashore3/staging

Chats: Fix past chat fetching
This commit is contained in:
RossAscends 2023-11-08 14:48:36 +09:00 committed by GitHub
commit a98c275445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5520,7 +5520,7 @@ export async function getChatsFromFiles(data, isGroupChat) {
* in descending order by file name. Returns `undefined` if the fetch request is unsuccessful.
*/
async function getPastCharacterChats() {
if (!characters.includes(this_chid)) return;
if (!characters[this_chid]) return;
const response = await fetch("/getallchatsofcharacter", {
method: 'POST',