Adjust some types

This commit is contained in:
Josh Perez
2022-07-12 20:37:21 -04:00
committed by GitHub
parent 9ce4b8977d
commit d7307934bc
15 changed files with 223 additions and 175 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
// Copyright 2021 Signal Messenger, LLC
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { getThemeType } from '../util/getThemeType';
export function themeChanged(): void {
if (window.reduxActions && window.reduxActions.user) {
const theme = window.Events.getThemeSetting();
window.reduxActions.user.userChanged({
theme: theme === 'system' ? window.systemTheme : theme,
});
const theme = getThemeType();
window.reduxActions.user.userChanged({ theme });
}
}