Comment-out bookmark validation

This commit is contained in:
Cohee
2023-08-20 19:43:58 +03:00
parent be6fedd626
commit d02fa88d3a

View File

@ -1607,7 +1607,8 @@ function addOneMessage(mes, { type = "normal", insertAfter = null, scroll = true
const bias = messageFormatting(mes.extra?.bias ?? ""); const bias = messageFormatting(mes.extra?.bias ?? "");
let bookmarkLink = mes?.extra?.bookmark_link ?? ''; let bookmarkLink = mes?.extra?.bookmark_link ?? '';
// Verify bookmarked chat still exists // Verify bookmarked chat still exists
if (bookmarkLink !== '' ) { // Cohee: Commented out for now. I'm worried of performance issues.
/*if (bookmarkLink !== '') {
let chat_names = selected_group let chat_names = selected_group
? getGroupChatNames(selected_group) ? getGroupChatNames(selected_group)
: Object.values(getPastCharacterChats()).map(({ file_name }) => file_name); : Object.values(getPastCharacterChats()).map(({ file_name }) => file_name);
@ -1615,7 +1616,7 @@ function addOneMessage(mes, { type = "normal", insertAfter = null, scroll = true
if (!chat_names.includes(bookmarkLink)) { if (!chat_names.includes(bookmarkLink)) {
bookmarkLink = '' bookmarkLink = ''
} }
} }*/
let params = { let params = {
mesId: count_view_mes, mesId: count_view_mes,
characterName: characterName, characterName: characterName,