This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/components/views/rooms Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ import {_t, _td} from '../../../languageHandler';
4040import ContentMessages from '../../../ContentMessages' ;
4141import { Key } from "../../../Keyboard" ;
4242import MatrixClientContext from "../../../contexts/MatrixClientContext" ;
43- import { MatrixClientPeg } from "../../../MatrixClientPeg" ;
4443import RateLimitedFunc from '../../../ratelimitedfunc' ;
4544import { Action } from "../../../dispatcher/actions" ;
4645
@@ -103,10 +102,9 @@ export default class SendMessageComposer extends React.Component {
103102 this . model = null ;
104103 this . _editorRef = null ;
105104 this . currentlyComposedEditorState = null ;
106- const cli = MatrixClientPeg . get ( ) ;
107- if ( cli . isCryptoEnabled ( ) && cli . isRoomEncrypted ( this . props . room . roomId ) ) {
105+ if ( this . context . isCryptoEnabled ( ) && this . context . isRoomEncrypted ( this . props . room . roomId ) ) {
108106 this . _prepareToEncrypt = new RateLimitedFunc ( ( ) => {
109- cli . prepareToEncrypt ( this . props . room ) ;
107+ this . context . prepareToEncrypt ( this . props . room ) ;
110108 } , 60000 ) ;
111109 }
112110
You can’t perform that action at this time.
0 commit comments