mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
Send feature for mobile (#1256)
* Send feature for mobile * added fallback for KdfIterations * additional property exclusions for tests * support encryptedFileData as byte array comparison in SendServiceTests * formatting * requested changes * additional changes * change position of send service registration to match declaration order
This commit is contained in:
@@ -374,7 +374,11 @@ namespace Bit.Core.Services
|
||||
await _policyService.Replace(policies);
|
||||
}
|
||||
|
||||
private Task SyncSendsAsync(string userId, List<SendResponse> sends) =>
|
||||
_sendService.ReplaceAsync(sends.ToDictionary(s => userId, s => new SendData(s, userId)));
|
||||
private async Task SyncSendsAsync(string userId, List<SendResponse> response)
|
||||
{
|
||||
var sends = response?.ToDictionary(s => s.Id, s => new SendData(s, userId)) ??
|
||||
new Dictionary<string, SendData>();
|
||||
await _sendService.ReplaceAsync(sends);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user