diff --git a/lib/src/utils/device_keys_list.dart b/lib/src/utils/device_keys_list.dart index 52af46ac..c32f713b 100644 --- a/lib/src/utils/device_keys_list.dart +++ b/lib/src/utils/device_keys_list.dart @@ -158,6 +158,9 @@ abstract class SignableKey extends MatrixSignableKey { } bool hasValidSignatureChain({bool verifiedOnly = true, Set visited}) { + if (!client.encryptionEnabled) { + return false; + } visited ??= {}; final setKey = '${userId};${identifier}'; if (visited.contains(setKey)) {