Count accounts rather than devices that are stories-capable

This commit is contained in:
Jon Chambers
2022-10-25 16:36:05 -04:00
committed by GitHub
parent 5868d9969a
commit 91626dea45

View File

@@ -89,6 +89,8 @@ public class BaseAccountAuthenticator {
return Optional.empty();
}
hasStoryCapability = account.map(Account::isStoriesSupported).orElse(false);
Optional<Device> device = account.get().getDevice(deviceId);
if (device.isEmpty()) {
@@ -108,11 +110,6 @@ public class BaseAccountAuthenticator {
}
}
Device.DeviceCapabilities capabilities = device.get().getCapabilities();
if (capabilities != null) {
hasStoryCapability = capabilities.isStories();
}
AuthenticationCredentials deviceAuthenticationCredentials = device.get().getAuthenticationCredentials();
if (deviceAuthenticationCredentials.verify(basicCredentials.getPassword())) {
succeeded = true;