@@ -138,7 +138,7 @@ interface IState {
138138 * This is what our MatrixChat shows when we are logged in. The precise view is
139139 * determined by the page_type property.
140140 *
141- * Currently it's very tightly coupled with MatrixChat. We should try to do
141+ * Currently, it's very tightly coupled with MatrixChat. We should try to do
142142 * something about that.
143143 *
144144 * Components mounted below us can access the matrix client via the react context.
@@ -147,7 +147,6 @@ interface IState {
147147class LoggedInView extends React . Component < IProps , IState > {
148148 static displayName = 'LoggedInView' ;
149149
150- private dispatcherRef : string ;
151150 protected readonly _matrixClient : MatrixClient ;
152151 protected readonly _roomView : React . RefObject < any > ;
153152 protected readonly _resizeContainer : React . RefObject < HTMLDivElement > ;
@@ -213,7 +212,6 @@ class LoggedInView extends React.Component<IProps, IState> {
213212 componentWillUnmount ( ) {
214213 document . removeEventListener ( 'keydown' , this . onNativeKeyDown , false ) ;
215214 CallHandler . instance . removeListener ( CallHandlerEvent . CallState , this . onCallState ) ;
216- dis . unregister ( this . dispatcherRef ) ;
217215 this . _matrixClient . removeListener ( "accountData" , this . onAccountData ) ;
218216 this . _matrixClient . removeListener ( "sync" , this . onSync ) ;
219217 this . _matrixClient . removeListener ( "RoomState.events" , this . onRoomStateEvents ) ;
0 commit comments