Added detection for broken/deleted bookmark links, can expand on this to automatically delete broken links, but for now it just hides the icon.

This commit is contained in:
based
2023-08-20 02:45:20 +10:00
parent b56fe3e01b
commit dba685bffb
2 changed files with 25 additions and 1 deletions

View File

@ -80,6 +80,7 @@ export {
regenerateGroup,
resetSelectedGroup,
select_group_chats,
getGroupChatNames,
}
let is_group_generating = false; // Group generation flag
@ -405,6 +406,19 @@ function getGroupAvatar(group) {
return groupAvatar;
}
function getGroupChatNames(groupId) {
const group = groups.find(x => x.id === groupId);
if (!group) {
return [];
}
const names = [];
for (const chatId of group.chats) {
names.push(chatId);
}
return names;
}
async function generateGroupWrapper(by_auto_mode, type = null, params = {}) {
if (online_status === "no_connection") {