Display loader on loading past chats

This commit is contained in:
Cohee
2023-12-06 00:42:41 +02:00
parent a457484c2d
commit 7f703704c7

View File

@ -9073,10 +9073,15 @@ jQuery(async function () {
return; return;
} }
if (selected_group) { try {
await openGroupChat(selected_group, file_name); showLoader();
} else { if (selected_group) {
await openCharacterChat(file_name); await openGroupChat(selected_group, file_name);
} else {
await openCharacterChat(file_name);
}
} finally {
hideLoader();
} }
$('#shadow_select_chat_popup').css('display', 'none'); $('#shadow_select_chat_popup').css('display', 'none');