You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
null guard
This commit is contained in:
@@ -123,7 +123,9 @@ export default React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
|
if (MatrixClientPeg.get()) {
|
||||||
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
_onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user