Open group UI immediately on click
| @@ -1576,6 +1576,8 @@ export async function openGroupById(groupId) { | ||
| 1576 | 1576 | } |
| 1577 | 1577 | |
| 1578 | 1578 | if (!is_send_press && !is_group_generating) { |
| 1579 | + select_group_chats(groupId); | |
| 1580 | + | |
| 1579 | 1581 | if (selected_group !== groupId) { |
| 1580 | 1582 | await clearChat(); |
| 1581 | 1583 | cancelTtsPlay(); |
| @@ -1587,8 +1589,6 @@ export async function openGroupById(groupId) { | ||
| 1587 | 1589 | chat.length = 0; |
| 1588 | 1590 | await getGroupChat(groupId); |
| 1589 | 1591 | } |
| 1590 | - | |
| 1591 | - select_group_chats(groupId); | |
| 1592 | 1592 | } |
| 1593 | 1593 | } |
| 1594 | 1594 | |