diff --git a/lib/encryption/utils/key_verification.dart b/lib/encryption/utils/key_verification.dart index 9aba6999..91548da3 100644 --- a/lib/encryption/utils/key_verification.dart +++ b/lib/encryption/utils/key_verification.dart @@ -637,8 +637,7 @@ class KeyVerification { }.contains(type)) { final deviceKeys = client.userDeviceKeys[userId]?.deviceKeys; deviceKeys?.removeWhere((_, value) => - value.hasValidSignatureChain(verifiedByTheirMasterKey: true) == - false); + !value.hasValidSignatureChain(verifiedByTheirMasterKey: true)); if (deviceKeys != null) { await client.sendToDeviceEncrypted( deviceKeys.values.toList(), diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index 6362db30..fb66e91e 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -221,7 +221,7 @@ abstract class SignableKey extends MatrixSignableKey { Set? visited, Set? onlyValidateUserIds, - /// Only check if this key is verified by any Master key. + /// Only check if this key is verified by their Master key. bool verifiedByTheirMasterKey = false, }) { if (!client.encryptionEnabled) {