1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-25 16:47:55 +01:00

filter Ciphers to exclude deleted items (#1559)

This commit is contained in:
Jake Fink 2021-10-04 13:46:45 -04:00 committed by GitHub
parent c0783cd162
commit 6109091ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,8 @@ namespace Bit.iOS.Core.Views
{
searchFilter = searchFilter.ToLower();
var results = _searchService.SearchCiphersAsync(searchFilter,
c => c.Type == Bit.Core.Enums.CipherType.Login, null, ct).GetAwaiter().GetResult();
c => c.Type == Bit.Core.Enums.CipherType.Login && !c.IsDeleted, null, ct)
.GetAwaiter().GetResult();
Items = results.Select(s => new CipherViewModel(s)).ToArray();
}
}