mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
null guard
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user