mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
filter Ciphers to exclude deleted items (#1559)
This commit is contained in:
parent
c0783cd162
commit
6109091ec0
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue