Add back wrongly removed Ephemeral.theme assignment (#6959) (#6963)

(cherry picked from commit cab863d62f)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2023-01-12 11:03:57 +02:00 committed by GitHub
parent 57a9ff31bf
commit da1b3dc71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});