Apply profile changes from URI before start

This commit is contained in:
Webifi 2023-08-29 13:55:22 -05:00
parent 98507d3f72
commit 0d4f12d900
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
import { querystring } from 'svelte-spa-router' import { querystring } from 'svelte-spa-router'
import { addChat, setChatSettingValueByKey } from './Storage.svelte' import { addChat, setChatSettingValueByKey } from './Storage.svelte'
import { replace } from 'svelte-spa-router' import { replace } from 'svelte-spa-router'
import { getProfile } from './Profiles.svelte' import { getProfile, restartProfile } from './Profiles.svelte'
import { getChatDefaults } from './Settings.svelte' import { getChatDefaults } from './Settings.svelte'
// Create the new chat instance then redirect to it // Create the new chat instance then redirect to it
@ -15,5 +15,6 @@
} }
}) })
restartProfile(chatId)
replace(`/chat/${chatId}`) replace(`/chat/${chatId}`)
</script> </script>