From da1b3dc71d3d93f387ace48165b7aca46296afe7 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Thu, 12 Jan 2023 11:03:57 +0200 Subject: [PATCH] Add back wrongly removed Ephemeral.theme assignment (#6959) (#6963) (cherry picked from commit cab863d62fa9da96750b0015cb54b680c0e2b433) Co-authored-by: Elias Nahum --- app/utils/theme/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/utils/theme/index.ts b/app/utils/theme/index.ts index 1c55889a1..519b3fcae 100644 --- a/app/utils/theme/index.ts +++ b/app/utils/theme/index.ts @@ -278,6 +278,7 @@ export function setThemeDefaults(theme: ExtendedTheme): Theme { export const updateThemeIfNeeded = (theme: Theme, force = false) => { const storedTheme = EphemeralStore.theme; if (!deepEqual(theme, storedTheme) || force) { + EphemeralStore.theme = theme; requestAnimationFrame(() => { setNavigationStackStyles(theme); });