File tree Expand file tree Collapse file tree
src/components/views/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ var sdk = require('matrix-react-sdk');
2121var MatrixClientPeg = require ( 'matrix-react-sdk/lib/MatrixClientPeg' ) ;
2222var UserSettingsStore = require ( 'matrix-react-sdk/lib/UserSettingsStore' ) ;
2323var Modal = require ( 'matrix-react-sdk/lib/Modal' ) ;
24- var SdkConfig = require ( "matrix-react-sdk/lib/SdkConfig" ) ;
2524
2625var notifications = require ( '../../../notifications' ) ;
2726
@@ -73,6 +72,8 @@ module.exports = React.createClass({
7372 propTypes : {
7473 // The array of threepids from the JS SDK (required for email notifications)
7574 threepids : React . PropTypes . array . isRequired ,
75+ // The brand string set when creating an email pusher
76+ brand : React . PropTypes . string ,
7677 } ,
7778
7879 getDefaultProps : function ( ) {
@@ -118,8 +119,8 @@ module.exports = React.createClass({
118119 var emailPusherPromise ;
119120 if ( event . target . checked ) {
120121 var data = { }
121- if ( SdkConfig . get ( ) . brand ) {
122- data [ 'brand' ] = SdkConfig . get ( ) . brand ;
122+ if ( this . props . brand ) {
123+ data [ 'brand' ] = this . props . brand ;
123124 }
124125 emailPusherPromise = UserSettingsStore . addEmailPusher ( address , data ) ;
125126 } else {
You can’t perform that action at this time.
0 commit comments