You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Only show User Info verify button if the other user has e2ee devices
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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) {
|
if (hasCrossSigningKeys !== undefined && devices.length > 0) {
|
||||||
// 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