hide verify button for own member

This commit is contained in:
Bruno Windels 2019-12-19 16:48:15 +00:00
parent 8c5f3d6d94
commit d57e76f3e2

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