You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix custom theme use with new room list
Fixes https://github.com/vector-im/riot-web/issues/13968 We were grabbing "custom-" instead of the actual theme name.
This commit is contained in:
@@ -80,7 +80,7 @@ export default class UserMenuButton extends React.Component<IProps, IState> {
|
|||||||
private isUserOnDarkTheme(): boolean {
|
private isUserOnDarkTheme(): boolean {
|
||||||
const theme = SettingsStore.getValue("theme");
|
const theme = SettingsStore.getValue("theme");
|
||||||
if (theme.startsWith("custom-")) {
|
if (theme.startsWith("custom-")) {
|
||||||
return getCustomTheme(theme.substring(0, 7)).is_dark;
|
return getCustomTheme(theme.substring("custom-".length)).is_dark;
|
||||||
}
|
}
|
||||||
return theme === "dark";
|
return theme === "dark";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user