Force save new chats without 1st message

475eca6fcac57dddc992a5b902d25a917fb93da2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -3Ignore whitespace
public/script.js+4 -3
@@ -6053,9 +6053,10 @@ async function getChatResult() {
60536053 const message = getFirstMessage();
60546054 if (message.mes) {
60556055 chat.push(message);
6056- await saveChatConditional();
60576056 freshChat = true;
60586057 }
6058+ // Make sure the chat appears on the server
6059+ await saveChatConditional();
60596060 }
60606061 await loadItemizedPrompts(getCurrentChatId());
60616062 await printMessages();
@@ -9837,8 +9838,8 @@ jQuery(async function () {
98379838 hideMenu();
98389839 });
98399840
98409841 $('#newChatFromManageScreenButton').on('click', async function () {
98419842 await doNewChat({ deleteCurrentChat: false });
98429843 $('#select_chat_cross').trigger('click');
98439844 });
98449845