Keep custom theme active after reload (#32506)

* fix: keep custom theme active after reload

* test: add e2e test

* test: fix matrix chat test
This commit is contained in:
Florian Duros
2026-02-16 11:23:32 +00:00
committed by GitHub
parent 04ef3a2d5d
commit 67fcbd1678
5 changed files with 35 additions and 0 deletions
+3
View File
@@ -1648,6 +1648,9 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
return;
}
// Re-apply theme now that account data (including custom_themes) is loaded, otherwise we might end up with the wrong theme applied if the user has custom themes enabled
setTheme();
this.firstSyncComplete = true;
this.firstSyncPromise.resolve();