Force save new chats without 1st message
| @@ -6053,9 +6053,10 @@ async function getChatResult() { | ||
| 6053 | 6053 | const message = getFirstMessage(); |
| 6054 | 6054 | if (message.mes) { |
| 6055 | 6055 | chat.push(message); |
| 6056 | - await saveChatConditional(); | |
| 6057 | 6056 | freshChat = true; |
| 6058 | 6057 | } |
| 6058 | + // Make sure the chat appears on the server | |
| 6059 | + await saveChatConditional(); | |
| 6059 | 6060 | } |
| 6060 | 6061 | await loadItemizedPrompts(getCurrentChatId()); |
| 6061 | 6062 | await printMessages(); |
| @@ -9837,8 +9838,8 @@ jQuery(async function () { | ||
| 9837 | 9838 | hideMenu(); |
| 9838 | 9839 | }); |
| 9839 | 9840 | |
| 9840 | 9841 | $('#newChatFromManageScreenButton').on('click', async function () { |
| 9841 | 9842 | await doNewChat({ deleteCurrentChat: false }); |
| 9842 | 9843 | $('#select_chat_cross').trigger('click'); |
| 9843 | 9844 | }); |
| 9844 | 9845 | |