mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00:00
Fix unmount TypeError in DeviceVerifyButtons
This commit is contained in:
@@ -42,7 +42,9 @@ export default React.createClass({
|
|||||||
|
|
||||||
componentWillUnmount: function() {
|
componentWillUnmount: function() {
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged);
|
if (cli) {
|
||||||
|
cli.removeListener("deviceVerificationChanged", this.onDeviceVerificationChanged);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
onDeviceVerificationChanged: function(userId, deviceId, deviceInfo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user