File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/components/structures Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import { MatrixClient } from 'matrix-js-sdk';
2424import { KeyCode } from 'matrix-react-sdk/lib/Keyboard' ;
2525import sdk from 'matrix-react-sdk' ;
2626import dis from 'matrix-react-sdk/lib/dispatcher' ;
27- import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg' ;
2827import VectorConferenceHandler from '../../VectorConferenceHandler' ;
2928
3029import SettingsStore from "matrix-react-sdk/lib/settings/SettingsStore" ;
@@ -206,7 +205,7 @@ var LeftPanel = React.createClass({
206205
207206 dis . dispatch ( RoomListActions . tagRoom (
208207 this . context . matrixClient ,
209- MatrixClientPeg . get ( ) . getRoom ( roomId ) ,
208+ this . context . matrixClient . getRoom ( roomId ) ,
210209 prevTag , newTag ,
211210 oldIndex , newIndex ,
212211 ) , true ) ;
@@ -223,7 +222,7 @@ var LeftPanel = React.createClass({
223222 const CallPreview = sdk . getComponent ( 'voip.CallPreview' ) ;
224223
225224 let topBox ;
226- if ( MatrixClientPeg . get ( ) . isGuest ( ) ) {
225+ if ( this . context . matrixClient . isGuest ( ) ) {
227226 const LoginBox = sdk . getComponent ( 'structures.LoginBox' ) ;
228227 topBox = < LoginBox collapsed = { this . props . collapsed } /> ;
229228 } else {
You can’t perform that action at this time.
0 commit comments