mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 02:23:57 +00:00
repurpose vaultlistpage to also serve favorites page
This commit is contained in:
@@ -18,5 +18,11 @@ namespace Bit.App.Repositories
|
||||
var sites = Connection.Table<SiteData>().Where(f => f.UserId == userId).Cast<SiteData>();
|
||||
return Task.FromResult(sites);
|
||||
}
|
||||
|
||||
public Task<IEnumerable<SiteData>> GetAllByUserIdAsync(string userId, bool favorite)
|
||||
{
|
||||
var sites = Connection.Table<SiteData>().Where(f => f.UserId == userId && f.Favorite == favorite).Cast<SiteData>();
|
||||
return Task.FromResult(sites);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user