mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
Merge pull request #4036 from matrix-org/jryans/mkey-remove
Fix listener removal in verification tile
This commit is contained in:
commit
d3cf4f132c
@ -40,7 +40,10 @@ export default class MKeyVerificationConclusion extends React.Component {
|
|||||||
if (request) {
|
if (request) {
|
||||||
request.off("change", this._onRequestChanged);
|
request.off("change", this._onRequestChanged);
|
||||||
}
|
}
|
||||||
MatrixClientPeg.removeListener("userTrustStatusChanged", this._onTrustChanged);
|
const cli = MatrixClientPeg.get();
|
||||||
|
if (cli) {
|
||||||
|
cli.removeListener("userTrustStatusChanged", this._onTrustChanged);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onRequestChanged = () => {
|
_onRequestChanged = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user