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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user