mirror of
https://github.com/bitwarden/mobile
synced 2025-01-16 02:42:20 +01:00
only fetch keys if there are some orgs
This commit is contained in:
parent
70c57928e7
commit
cf58c1b4b5
@ -393,7 +393,7 @@ namespace Bit.App.Services
|
|||||||
|
|
||||||
private async Task SyncOrgKeysAsync(ProfileResponse profile)
|
private async Task SyncOrgKeysAsync(ProfileResponse profile)
|
||||||
{
|
{
|
||||||
if(_cryptoService.PrivateKey == null)
|
if(_cryptoService.PrivateKey == null && (profile.Organizations?.Any() ?? false))
|
||||||
{
|
{
|
||||||
var keys = await _accountsApiRepository.GetKeys();
|
var keys = await _accountsApiRepository.GetKeys();
|
||||||
if(!CheckSuccess(keys))
|
if(!CheckSuccess(keys))
|
||||||
|
Loading…
Reference in New Issue
Block a user