1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 15:53:44 +00:00

[SG-831] Pull Down Sync does not retrieve pending AuthRequests (#2196)

* [SG-831] Pull to refresh forces refresh.

* [SG-831] Expose sync login request method to be used independently

* [SG-831] Change sync order
This commit is contained in:
André Bispo
2022-11-17 16:02:34 +00:00
committed by GitHub
parent 8e09f0cc15
commit 34fd30e157
4 changed files with 6 additions and 2 deletions

View File

@@ -111,7 +111,6 @@ namespace Bit.Core.Services
await SyncSettingsAsync(userId, response.Domains);
await SyncPoliciesAsync(response.Policies);
await SyncSendsAsync(userId, response.Sends);
await SyncPasswordlessLoginRequestsAsync(userId);
await SetLastSyncAsync(now);
return SyncCompleted(true);
}
@@ -387,10 +386,11 @@ namespace Bit.Core.Services
await _sendService.ReplaceAsync(sends);
}
private async Task SyncPasswordlessLoginRequestsAsync(string userId)
public async Task SyncPasswordlessLoginRequestsAsync()
{
try
{
var userId = await _stateService.GetActiveUserIdAsync();
// if the user has not enabled passwordless logins ignore requests
if (!await _stateService.GetApprovePasswordlessLoginsAsync(userId))
{