Fix opening groups after conversion

This commit is contained in:
Cohee
2023-08-19 21:44:15 +03:00
parent 93cb3bfee3
commit 941c67139a
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,6 @@
import {
characters,
saveChat,
sendSystemMessage,
system_messages,
system_message_types,
this_chid,
@ -19,6 +18,7 @@ import {
getGroupPastChats,
group_activation_strategy,
groups,
openGroupById,
openGroupChat,
saveGroupBookmarkChat,
selected_group,
@ -301,13 +301,12 @@ async function convertSoloToGroupChat() {
}
// Click on the freshly selected group to open it
$(`.group_select[grid="${group.id}"]`).click();
await openGroupById(group.id);
await delay(1);
toastr.success('The chat has been successfully converted!');
}
$(document).ready(function () {
jQuery(function () {
$('#option_new_bookmark').on('click', saveBookmarkMenu);
$('#option_back_to_main').on('click', backToMainChat);
$('#option_convert_to_group').on('click', convertSoloToGroupChat);