fix: minor stuff

This commit is contained in:
Reza 2022-11-24 10:48:17 +01:00
parent dd4d0696b3
commit f969a733f1
2 changed files with 2 additions and 3 deletions

View File

@ -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(),

View File

@ -221,7 +221,7 @@ abstract class SignableKey extends MatrixSignableKey {
Set<String>? visited,
Set<String>? 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) {