hide verify button for own member
This commit is contained in:
parent
8c5f3d6d94
commit
d57e76f3e2
1 changed files with 2 additions and 1 deletions
|
@ -1293,8 +1293,9 @@ const UserInfo = ({user, groupId, roomId, onClose}) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const userVerified = cli.checkUserTrust(user.userId).isVerified();
|
const userVerified = cli.checkUserTrust(user.userId).isVerified();
|
||||||
|
const isMe = user.userId === cli.getUserId();
|
||||||
let verifyButton;
|
let verifyButton;
|
||||||
if (!userVerified) {
|
if (!userVerified && !isMe) {
|
||||||
verifyButton = <AccessibleButton className="mx_UserInfo_verify" onClick={() => verifyUser(user)}>
|
verifyButton = <AccessibleButton className="mx_UserInfo_verify" onClick={() => verifyUser(user)}>
|
||||||
{_t("Verify")}
|
{_t("Verify")}
|
||||||
</AccessibleButton>;
|
</AccessibleButton>;
|
||||||
|
|
Loading…
Reference in a new issue