[build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { Iterable, fromJS } from 'immutable';
|
||||
import { Iterable, fromJS } from "immutable";
|
||||
|
||||
import { hydrateCompose } from './compose';
|
||||
import { importFetchedAccounts } from './importer';
|
||||
import { hydrateSearch } from './search';
|
||||
import { saveSettings } from './settings';
|
||||
import { hydrateCompose } from "./compose";
|
||||
import { importFetchedAccounts } from "./importer";
|
||||
import { hydrateSearch } from "./search";
|
||||
import { saveSettings } from "./settings";
|
||||
|
||||
export const STORE_HYDRATE = 'STORE_HYDRATE';
|
||||
export const STORE_HYDRATE_LAZY = 'STORE_HYDRATE_LAZY';
|
||||
export const STORE_HYDRATE = "STORE_HYDRATE";
|
||||
export const STORE_HYDRATE_LAZY = "STORE_HYDRATE_LAZY";
|
||||
|
||||
const convertState = rawState =>
|
||||
fromJS(rawState, (k, v) =>
|
||||
@@ -15,12 +15,12 @@ const convertState = rawState =>
|
||||
const applyMigrations = (state) => {
|
||||
return state.withMutations(state => {
|
||||
// Migrate glitch-soc local-only “Show unread marker” setting to Mastodon's setting
|
||||
if (state.getIn(['local_settings', 'notifications', 'show_unread']) !== undefined) {
|
||||
if (state.getIn(["local_settings", "notifications", "show_unread"]) !== undefined) {
|
||||
// Only change if the Mastodon setting does not deviate from default
|
||||
if (state.getIn(['settings', 'notifications', 'showUnread']) !== false) {
|
||||
state.setIn(['settings', 'notifications', 'showUnread'], state.getIn(['local_settings', 'notifications', 'show_unread']));
|
||||
if (state.getIn(["settings", "notifications", "showUnread"]) !== false) {
|
||||
state.setIn(["settings", "notifications", "showUnread"], state.getIn(["local_settings", "notifications", "show_unread"]));
|
||||
}
|
||||
state.removeIn(['local_settings', 'notifications', 'show_unread']);
|
||||
state.removeIn(["local_settings", "notifications", "show_unread"]);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user