Count accounts rather than devices that are stories-capable
This commit is contained in:
parent
5868d9969a
commit
91626dea45
|
@ -89,6 +89,8 @@ public class BaseAccountAuthenticator {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hasStoryCapability = account.map(Account::isStoriesSupported).orElse(false);
|
||||||
|
|
||||||
Optional<Device> device = account.get().getDevice(deviceId);
|
Optional<Device> device = account.get().getDevice(deviceId);
|
||||||
|
|
||||||
if (device.isEmpty()) {
|
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();
|
AuthenticationCredentials deviceAuthenticationCredentials = device.get().getAuthenticationCredentials();
|
||||||
if (deviceAuthenticationCredentials.verify(basicCredentials.getPassword())) {
|
if (deviceAuthenticationCredentials.verify(basicCredentials.getPassword())) {
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
|
|
Loading…
Reference in New Issue