Skip to content

Commit

Permalink
ユーザーリストのピン留めに関連するものが残っていたので削除
Browse files Browse the repository at this point in the history
  • Loading branch information
adzukimame committed Dec 7, 2024
1 parent 6b4625a commit a06b25b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const defaultStoreSaveKeys: (keyof typeof defaultStore['state'])[] = [
'localOnly',
'widgets',
'tl',
'pinnedUserLists',
'timelineTabs',
'overridedDeviceKind',
'serverDisconnectedBehavior',
Expand Down
6 changes: 0 additions & 6 deletions packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,6 @@ async function chooseChannel(ev: MouseEvent): Promise<void> {

function saveSrc(newSrc: TimelinePageSrc): void {
const out = deepMerge({ src: newSrc }, defaultStore.state.tl);

if (newSrc.startsWith('userList:')) {
const id = newSrc.substring('userList:'.length);
out.userList = defaultStore.reactiveState.pinnedUserLists.value.find(l => l.id === id) ?? null;
}

defaultStore.set('tl', out);
}

Expand Down
5 changes: 0 additions & 5 deletions packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'deviceAccount',
default: {
src: 'home' as 'home' | 'local' | 'social' | 'global' | `list:${string}`,
userList: null as UserList | null,
filter: {
withReplies: true,
withRenotes: true,
Expand All @@ -145,10 +144,6 @@ export const defaultStore = markRaw(new Storage('base', {
},
},
},
pinnedUserLists: {
where: 'deviceAccount',
default: [] as UserList[],
},
timelineTabs: {
where: 'deviceAccount',
default: [
Expand Down

0 comments on commit a06b25b

Please sign in to comment.