Merge pull request #1335 from bdashore3/staging
Chats: Fix past chat fetching
This commit is contained in:
commit
a98c275445
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue