You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
don't show e2e icon in unencrypted rooms upon loading the room
This commit is contained in:
@@ -738,9 +738,6 @@ module.exports = React.createClass({
|
||||
|
||||
onDeviceVerificationChanged: function(userId, device) {
|
||||
const room = this.state.room;
|
||||
if (!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) {
|
||||
return;
|
||||
}
|
||||
if (!room.currentState.getMember(userId)) {
|
||||
return;
|
||||
}
|
||||
@@ -748,6 +745,9 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
_updateE2EStatus: function(room) {
|
||||
if (!MatrixClientPeg.get().isRoomEncrypted(room.roomId)) {
|
||||
return;
|
||||
}
|
||||
room.hasUnverifiedDevices().then((hasUnverifiedDevices) => {
|
||||
this.setState({e2eStatus: hasUnverifiedDevices ? "warning" : "verified"});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user