diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 1cb43de58736..9d03ce23dbae 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -64,7 +64,7 @@ const rootEl = shallowRef(); type TimelinePageSrc = BasicTimelineType | `list:${string}`; const queue = ref(0); -const srcWhenNotSignin = ref<'local' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global'); +const srcWhenNotSignin = ref<'local' | 'global' | 'vmimi-relay'>(isAvailableBasicTimeline('local') ? 'local' : 'global'); const src = computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin.value), set: (x) => saveSrc(x), @@ -212,8 +212,8 @@ function saveSrc(newSrc: TimelinePageSrc): void { } defaultStore.set('tl', out); - if (['local', 'global'].includes(newSrc)) { - srcWhenNotSignin.value = newSrc as 'local' | 'global'; + if (['local', 'global', 'vmimi-relay'].includes(newSrc)) { + srcWhenNotSignin.value = newSrc as 'local' | 'global' | 'vmimi-relay'; } }