mirror of https://github.com/vector-im/riot-web
hide verify button for own member
parent
8c5f3d6d94
commit
d57e76f3e2
|
@ -1293,8 +1293,9 @@ const UserInfo = ({user, groupId, roomId, onClose}) => {
|
|||
}
|
||||
|
||||
const userVerified = cli.checkUserTrust(user.userId).isVerified();
|
||||
const isMe = user.userId === cli.getUserId();
|
||||
let verifyButton;
|
||||
if (!userVerified) {
|
||||
if (!userVerified && !isMe) {
|
||||
verifyButton = <AccessibleButton className="mx_UserInfo_verify" onClick={() => verifyUser(user)}>
|
||||
{_t("Verify")}
|
||||
</AccessibleButton>;
|
||||
|
|
Loading…
Reference in New Issue