mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
null guard
This commit is contained in:
parent
1a3671d241
commit
0deed4bb88
@ -123,7 +123,9 @@ export default React.createClass({
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
||||
if (MatrixClientPeg.get()) {
|
||||
MatrixClientPeg.get().removeListener("deviceVerificationChanged", this._onDeviceVerificationChanged);
|
||||
}
|
||||
},
|
||||
|
||||
_onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
||||
|
Loading…
Reference in New Issue
Block a user