1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

Update revision date from server on restore (#1211)

This commit is contained in:
Matt Gibson
2021-01-08 08:53:45 -06:00
committed by GitHub
parent 3b5cae01e0
commit ca7794e6f2
3 changed files with 5 additions and 4 deletions

View File

@@ -760,8 +760,9 @@ namespace Bit.Core.Services
{
return;
}
await _apiService.PutRestoreCipherAsync(id);
var response = await _apiService.PutRestoreCipherAsync(id);
ciphers[id].DeletedDate = null;
ciphers[id].RevisionDate = response.RevisionDate;
await _storageService.SaveAsync(cipherKey, ciphers);
await ClearCacheAsync();
}