1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

Add encrypted hint json property (#1184)

This commit is contained in:
Matt Gibson 2020-12-18 16:17:04 -06:00 committed by GitHub
parent ef4b53b337
commit e0191c573d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ namespace Bit.Core.Services
{
var jsonDoc = new
{
Encrypted = false,
Folders = decryptedFolders.Where(f => f.Id != null).Select(f => new FolderWithId(f)),
Items = decryptedCiphers.Where(c => c.OrganizationId == null)
.Select(c => new CipherWithId(c) { CollectionIds = null })
@ -179,6 +180,7 @@ namespace Bit.Core.Services
{
var jsonDoc = new
{
Encrypted = true,
Folders = folders,
Items = ciphers,
};