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(); searchFilter = searchFilter.ToLower();
var results = _searchService.SearchCiphersAsync(searchFilter, 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(); Items = results.Select(s => new CipherViewModel(s)).ToArray();
} }
} }