Skip to content

Commit

Permalink
fix: 設定バックアップ時に一部の設定が欠落してバックアップされる問題
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Aug 4, 2023
1 parent b7e427a commit fb75a2d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- Fix: (Friendly) 흐림 효과를 사용할 때 하단 내비게이션 바의 가독성이 매우 떨어지는 문제
- Fix: 움직임이 있는 MFM 설정을 사용하지 않아도 `$[rainbow ]`문자를 볼 수 있음 (misskey-dev/misskey#11361)
- Fix: 모바일에서 헤더의 디자인을 변경하면 흐림 효과가 강제됨
- Fix: 환경설정 백업 시 일부 설정이 누락되어 백업되는 문제

### Server
- Fix: 실행 중인 앱 내에서 ServerStatsService 시작 (misskey-dev/misskey#11342)
Expand Down
24 changes: 21 additions & 3 deletions packages/frontend/src/pages/settings/preferences-backups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,36 @@ const defaultStoreSaveKeys: (keyof typeof defaultStore['state'])[] = [
'reactionPickerUseDrawerForMobile',
'defaultSideView',
'menuDisplay',
'bannerDisplay',
'reportError',
'squareAvatars',
'hideAvatarsInNote',
'numberOfPageCache',
'aiChanMode',
'mediaListWithOneImageAppearance',
'useEnterToSend',
'postFormVisibilityHotkey',
'newNoteReceivedNotificationBehavior',
'collapseDefault',
'requireRefreshBehavior',
'bannerDisplay',
'hideAvatarsInNote',
'showTranslateButtonInNote',
'enableAbsoluteTime',
'enableMarkByDate',
'showSubNoteFooterButton',
'enableHomeTimeline',
'enableLocalTimeline',
'enableMediaTimeline',
'enableSocialTimeline',
'enableCatTimeline',
'enableGlobalTimeline',
'enableListTimeline',
'enableAntennaTimeline',
'enableChannelTimeline',
'useEnterToSend',
'postFormVisibilityHotkey',
'showRenoteConfirmPopup',
'displayHeaderNavBarWhenScroll',
'showPostFormPreview',
'mobileTimelineHeaderChange',
];
const coldDeviceStorageSaveKeys: (keyof typeof ColdDeviceStorage.default)[] = [
'lightTheme',
Expand Down
18 changes: 10 additions & 8 deletions packages/frontend/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,6 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: 8,
},
friendlyEnableNotifications: {
where: 'device',
default: true,
},
friendlyEnableWidgets: {
where: 'device',
default: true,
},
collapseDefault: {
where: 'account',
default: true,
Expand Down Expand Up @@ -484,6 +476,16 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: false,
},

// - etc
friendlyEnableNotifications: {
where: 'device',
default: true,
},
friendlyEnableWidgets: {
where: 'device',
default: true,
},
// #endregion
}));

Expand Down

0 comments on commit fb75a2d

Please sign in to comment.