Shields: Shields in one self room should be green if I have no other device

This commit is contained in:
manuroe
2020-01-30 17:48:22 +01:00
parent 3c4383534a
commit aeaf99d0d2
@@ -245,7 +245,8 @@
double trustedDevicesPercentage = usersTrustLevelSummary.trustedDevicesProgress.fractionCompleted;
if (trustedDevicesPercentage >= 1.0)
if (trustedDevicesPercentage >= 1.0
|| usersTrustLevelSummary.trustedDevicesProgress.totalUnitCount == 0)
{
roomEncryptionTrustLevel = RoomEncryptionTrustLevelTrusted;
}