You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
@@ -1296,7 +1296,7 @@ const BasicUserInfo = ({room, member, groupId, devices, isRoomEncrypted}) => {
|
|||||||
const userTrust = cryptoEnabled && cli.checkUserTrust(member.userId);
|
const userTrust = cryptoEnabled && cli.checkUserTrust(member.userId);
|
||||||
const userVerified = cryptoEnabled && userTrust.isCrossSigningVerified();
|
const userVerified = cryptoEnabled && userTrust.isCrossSigningVerified();
|
||||||
const isMe = member.userId === cli.getUserId();
|
const isMe = member.userId === cli.getUserId();
|
||||||
const canVerify = cryptoEnabled && homeserverSupportsCrossSigning && !userVerified && !isMe;
|
const canVerify = cryptoEnabled && homeserverSupportsCrossSigning && !userVerified && !isMe && devices.length > 0;
|
||||||
|
|
||||||
const setUpdating = (updating) => {
|
const setUpdating = (updating) => {
|
||||||
setPendingUpdateCount(count => count + (updating ? 1 : -1));
|
setPendingUpdateCount(count => count + (updating ? 1 : -1));
|
||||||
@@ -1306,7 +1306,7 @@ const BasicUserInfo = ({room, member, groupId, devices, isRoomEncrypted}) => {
|
|||||||
|
|
||||||
const showDeviceListSpinner = devices === undefined;
|
const showDeviceListSpinner = devices === undefined;
|
||||||
if (canVerify) {
|
if (canVerify) {
|
||||||
if (hasCrossSigningKeys !== undefined && devices.length > 0) {
|
if (hasCrossSigningKeys !== undefined) {
|
||||||
// Note: mx_UserInfo_verifyButton is for the end-to-end tests
|
// Note: mx_UserInfo_verifyButton is for the end-to-end tests
|
||||||
verifyButton = (
|
verifyButton = (
|
||||||
<AccessibleButton className="mx_UserInfo_field mx_UserInfo_verifyButton" onClick={() => {
|
<AccessibleButton className="mx_UserInfo_field mx_UserInfo_verifyButton" onClick={() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user