Temp chat button works
| @@ -10113,7 +10113,7 @@ async function removeCharacterFromUI() { | ||
| 10113 | 10113 | saveSettingsDebounced(); |
| 10114 | 10114 | } |
| 10115 | 10115 | |
| 10116 | 10116 | export async function newAssistantChat() { |
| 10117 | 10117 | await clearChat(); |
| 10118 | 10118 | chat.splice(0, chat.length); |
| 10119 | 10119 | chat_metadata = {}; |
| @@ -6,6 +6,7 @@ import { | ||
| 6 | 6 | getCurrentChatId, |
| 7 | 7 | getRequestHeaders, |
| 8 | 8 | getThumbnailUrl, |
| 9 | + newAssistantChat, | |
| 9 | 10 | openCharacterChat, |
| 10 | 11 | selectCharacterById, |
| 11 | 12 | sendSystemMessage, |
| @@ -50,7 +51,7 @@ async function sendWelcomePanel() { | ||
| 50 | 51 | }); |
| 51 | 52 | }); |
| 52 | 53 | fragment.querySelector('button.openTemporaryChat').addEventListener('click', () => { |
| 53 | - toastr.info('This button does nothing at the moment. Try again later.'); | |
| 54 | + void newAssistantChat(); | |
| 54 | 55 | }); |
| 55 | 56 | chatElement.append(fragment.firstChild); |
| 56 | 57 | } catch (error) { |