You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
disabling setting theme without breaking the build
This commit is contained in:
@@ -673,9 +673,11 @@ export default React.createClass({
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'set_theme':
|
// case 'set_theme':
|
||||||
this._onSetTheme(payload.value);
|
// disable changing the theme for now
|
||||||
break;
|
// as other themes are not compatible with dharma
|
||||||
|
// this._onSetTheme(payload.value);
|
||||||
|
// break;
|
||||||
case 'on_logging_in':
|
case 'on_logging_in':
|
||||||
// We are now logging in, so set the state to reflect that
|
// We are now logging in, so set the state to reflect that
|
||||||
// NB. This does not touch 'ready' since if our dispatches
|
// NB. This does not touch 'ready' since if our dispatches
|
||||||
@@ -1079,10 +1081,6 @@ export default React.createClass({
|
|||||||
* @param {string} theme new theme
|
* @param {string} theme new theme
|
||||||
*/
|
*/
|
||||||
_onSetTheme: function(theme) {
|
_onSetTheme: function(theme) {
|
||||||
// disable changing the theme for now
|
|
||||||
// as other themes are not compatible with dharma
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
theme = SettingsStore.getValue("theme");
|
theme = SettingsStore.getValue("theme");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user