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)) { }.contains(type)) {
final deviceKeys = client.userDeviceKeys[userId]?.deviceKeys; final deviceKeys = client.userDeviceKeys[userId]?.deviceKeys;
deviceKeys?.removeWhere((_, value) => deviceKeys?.removeWhere((_, value) =>
value.hasValidSignatureChain(verifiedByTheirMasterKey: true) == !value.hasValidSignatureChain(verifiedByTheirMasterKey: true));
false);
if (deviceKeys != null) { if (deviceKeys != null) {
await client.sendToDeviceEncrypted( await client.sendToDeviceEncrypted(
deviceKeys.values.toList(), deviceKeys.values.toList(),

View File

@ -221,7 +221,7 @@ abstract class SignableKey extends MatrixSignableKey {
Set<String>? visited, Set<String>? visited,
Set<String>? onlyValidateUserIds, 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, bool verifiedByTheirMasterKey = false,
}) { }) {
if (!client.encryptionEnabled) { if (!client.encryptionEnabled) {