You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Don't throw an exception entering settings page
if end to end encryption is disabled (eg. if you're a guest and the server is too old to support e2e for guests).
This commit is contained in:
@@ -338,7 +338,16 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_renderCryptoInfo: function() {
|
_renderCryptoInfo: function() {
|
||||||
var client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
|
if (!client.isCryptoEnabled()) {
|
||||||
|
return <div>
|
||||||
|
<h3>Cryptography</h3>
|
||||||
|
<div className="mx_UserSettings_section mx_UserSettings_cryptoSection error">
|
||||||
|
End-to-end encryption is disabled
|
||||||
|
</div>
|
||||||
|
</div>;
|
||||||
|
}
|
||||||
|
|
||||||
var deviceId = client.deviceId;
|
var deviceId = client.deviceId;
|
||||||
var identityKey = client.getDeviceEd25519Key() || "<not supported>";
|
var identityKey = client.getDeviceEd25519Key() || "<not supported>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user