focusedId shenanigans

This commit is contained in:
Henry Jameson 2026-09-16 03:06:29 +03:00
commit c4b3eff348
3 changed files with 37 additions and 46 deletions

View file

@ -102,7 +102,6 @@ export default {
// # Main things
const {
focusedId,
focusedIdRaw,
conversationId,
setFocused,
currentStatus,
@ -321,8 +320,8 @@ export default {
}
const diveIntoStatus = (id) => scrollTo(new Set([id]))
const diveToTopLevel = () => scrollTo(new Set([currentAncestors.value[0].id]))
watch(focusedIdRaw, async (neu) => {
if (!isPage.value) return
watch(focusedId, async (neu, old) => {
if (neu) scrollTo(new Set([neu]))
})