Exorcised base64 image stuff

This commit is contained in:
city-unit
2023-08-19 23:01:09 -04:00
parent 4488cee65d
commit 2f09efcd7f
4 changed files with 109 additions and 13 deletions

View File

@ -5629,7 +5629,14 @@ export async function getChatsFromFiles(data, isGroupChat) {
return chat_dict;
}
/**
* Fetches the metadata of all past chats related to a specific character based on its avatar URL.
* The function sends a POST request to the server to retrieve all chats for the character. It then
* processes the received data, sorts it by the file name, and returns the sorted data.
*
* @returns {Array} - An array containing metadata of all past chats of the character, sorted
* in descending order by file name. Returns `undefined` if the fetch request is unsuccessful.
*/
async function getPastCharacterChats() {
const response = await fetch("/getallchatsofcharacter", {
method: 'POST',