Change ephemeral settings to only persist in ephemeralConfig

This commit is contained in:
ayumi-signal 2024-03-07 09:36:08 -08:00 committed by GitHub
parent 07e2fb7f60
commit 73e8bec42f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 295 additions and 265 deletions

View file

@ -3,9 +3,9 @@
import { getThemeType } from '../util/getThemeType';
export function themeChanged(): void {
export async function themeChanged(): Promise<void> {
if (window.reduxActions && window.reduxActions.user) {
const theme = getThemeType();
const theme = await getThemeType();
window.reduxActions.user.userChanged({ theme });
}
}