Slight performance increase for opening large World Infos

This commit is contained in:
Cohee
2023-08-20 13:15:02 +03:00
parent b44c72c639
commit 106f7afdcb
4 changed files with 23 additions and 7 deletions

View File

@@ -1263,6 +1263,11 @@ function updateFavButtonState(state) {
}
export async function openGroupById(groupId) {
if (!groups.find(x => x.id === groupId)) {
console.log('Group not found', groupId);
return;
}
if (!is_send_press && !is_group_generating) {
if (selected_group !== groupId) {
cancelTtsPlay();