Open group UI immediately on click

This commit is contained in:
Cohee 2024-07-01 00:59:51 +03:00
parent 5d74749fd0
commit b3f657bed5
1 changed files with 2 additions and 2 deletions

View File

@ -1576,6 +1576,8 @@ export async function openGroupById(groupId) {
}
if (!is_send_press && !is_group_generating) {
select_group_chats(groupId);
if (selected_group !== groupId) {
await clearChat();
cancelTtsPlay();
@ -1587,8 +1589,6 @@ export async function openGroupById(groupId) {
chat.length = 0;
await getGroupChat(groupId);
}
select_group_chats(groupId);
}
}