From 6a36bb2d01d3061f78097394b5f3a5347be67abe Mon Sep 17 00:00:00 2001 From: Sorunome Date: Fri, 12 Jun 2020 16:25:26 +0200 Subject: [PATCH] fix pipeline --- lib/src/utils/device_keys_list.dart | 3 +++ 1 file changed, 3 insertions(+) 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)) {