fix: minor stuff
This commit is contained in:
parent
dd4d0696b3
commit
f969a733f1
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue