keyBackupStatus event now has crypto. prefix
This commit is contained in:
parent
76587d4ef8
commit
23332e16c5
1 changed files with 2 additions and 2 deletions
|
@ -42,14 +42,14 @@ export default class KeyBackupPanel extends React.Component {
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
this._loadBackupStatus();
|
this._loadBackupStatus();
|
||||||
|
|
||||||
MatrixClientPeg.get().on('keyBackupStatus', this._onKeyBackupStatus);
|
MatrixClientPeg.get().on('crypto.keyBackupStatus', this._onKeyBackupStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this._unmounted = true;
|
this._unmounted = true;
|
||||||
|
|
||||||
if (MatrixClientPeg.get()) {
|
if (MatrixClientPeg.get()) {
|
||||||
MatrixClientPeg.get().removeListener('keyBackupStatus', this._onKeyBackupStatus);
|
MatrixClientPeg.get().removeListener('crypto.keyBackupStatus', this._onKeyBackupStatus);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue