Merge pull request #4740 from matrix-org/travis/room-list/stability-1
Improve general stability in the new room list
This commit is contained in:
commit
a4ea5b5902
3 changed files with 21 additions and 4 deletions
|
@ -80,7 +80,7 @@ export default class UserMenuButton extends React.Component<IProps, IState> {
|
|||
private isUserOnDarkTheme(): boolean {
|
||||
const theme = SettingsStore.getValue("theme");
|
||||
if (theme.startsWith("custom-")) {
|
||||
return getCustomTheme(theme.substring(0, 7)).is_dark;
|
||||
return getCustomTheme(theme.substring("custom-".length)).is_dark;
|
||||
}
|
||||
return theme === "dark";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue