mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-29 07:11:27 +01:00
js-sdk now handle recovery key formatting
This commit is contained in:
parent
fa30707eae
commit
56808077d0
@ -17,7 +17,6 @@ limitations under the License.
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import sdk from '../../../../index';
|
import sdk from '../../../../index';
|
||||||
import MatrixClientPeg from '../../../../MatrixClientPeg';
|
import MatrixClientPeg from '../../../../MatrixClientPeg';
|
||||||
import { formatCryptoKey } from '../../../../utils/FormattingUtils';
|
|
||||||
import Promise from 'bluebird';
|
import Promise from 'bluebird';
|
||||||
|
|
||||||
import { _t, _td } from '../../../../languageHandler';
|
import { _t, _td } from '../../../../languageHandler';
|
||||||
@ -139,7 +138,7 @@ export default React.createClass({
|
|||||||
return <div>
|
return <div>
|
||||||
<p>{_t("Here is your recovery key:")}</p>
|
<p>{_t("Here is your recovery key:")}</p>
|
||||||
<p className="mx_CreateKeyBackupDialog_recoveryKey">
|
<p className="mx_CreateKeyBackupDialog_recoveryKey">
|
||||||
<code ref={this._collectRecoveryKeyNode}>{formatCryptoKey(this._keyBackupInfo.recovery_key)}</code>
|
<code ref={this._collectRecoveryKeyNode}>{this._keyBackupInfo.recovery_key}</code>
|
||||||
</p>
|
</p>
|
||||||
<p>{_t("This key can decrypt your full message history.")}</p>
|
<p>{_t("This key can decrypt your full message history.")}</p>
|
||||||
<p>{_t(
|
<p>{_t(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user