hide verify button for own member

pull/21833/head
Bruno Windels 2019-12-19 16:48:15 +00:00
parent 8c5f3d6d94
commit d57e76f3e2
1 changed files with 2 additions and 1 deletions

View File

@ -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>;