null guard
This commit is contained in:
parent
1a3671d241
commit
0deed4bb88
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ export default React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
if (MatrixClientPeg.get()) {
|
||||||
|
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
_onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue