mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
fix undefined devices case
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6f7d6f27f1
commit
42cdf4b7c9
@ -1296,7 +1296,8 @@ 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 && devices.length > 0;
|
const canVerify = cryptoEnabled && homeserverSupportsCrossSigning && !userVerified && !isMe &&
|
||||||
|
devices && devices.length > 0;
|
||||||
|
|
||||||
const setUpdating = (updating) => {
|
const setUpdating = (updating) => {
|
||||||
setPendingUpdateCount(count => count + (updating ? 1 : -1));
|
setPendingUpdateCount(count => count + (updating ? 1 : -1));
|
||||||
|
Loading…
Reference in New Issue
Block a user