diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 729900b8..954c632b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "RisuAI", - "version": "1.93.2" + "version": "1.93.3" }, "tauri": { "allowlist": { diff --git a/src/lib/ChatScreens/DefaultChatScreen.svelte b/src/lib/ChatScreens/DefaultChatScreen.svelte index 86bca283..d4a238c2 100644 --- a/src/lib/ChatScreens/DefaultChatScreen.svelte +++ b/src/lib/ChatScreens/DefaultChatScreen.svelte @@ -29,7 +29,8 @@ let messageInput:string = '' let messageInputTranslate:string = '' let openMenu = false - let loadPages = 30 + let loadPages = 10 + let lastLoadedChatId = '' let autoMode = false let rerolls:Message[][] = [] let rerollid = -1 @@ -48,6 +49,17 @@ return sendMain(true) } + function getLoadPages(){ + if(!$CurrentChat.id){ + $CurrentChat.id = v4() + } + if($CurrentChat.id !== lastLoadedChatId){ + lastLoadedChatId = $CurrentChat.id + loadPages = 10 + } + return loadPages + } + async function sendMain(continueResponse:boolean) { let selectedChar = $selectedCharID if($doingChat){ @@ -374,7 +386,7 @@ mergedCanvas.remove(); } alertNormal(language.screenshotSaved) - loadPages = 15 + loadPages = 10 } catch (error) { console.error(error) alertError("Error while taking screenshot") @@ -397,7 +409,7 @@ //@ts-ignore const scrolled = (e.target.scrollHeight - e.target.clientHeight + e.target.scrollTop) if(scrolled < 100 && $CurrentChat.message.length > loadPages){ - loadPages += 15 + loadPages += 10 } }}>