mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
Include revision date in cipher requests (#1152)
Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
This commit is contained in:
parent
405c4d1706
commit
e27370cf32
2 changed files with 5 additions and 1 deletions
|
@ -3,6 +3,7 @@ using Bit.Core.Models.Api;
|
||||||
using Bit.Core.Models.Domain;
|
using Bit.Core.Models.Domain;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Bit.Core.Models.Request
|
namespace Bit.Core.Models.Request
|
||||||
{
|
{
|
||||||
|
@ -16,6 +17,7 @@ namespace Bit.Core.Models.Request
|
||||||
Name = cipher.Name?.EncryptedString;
|
Name = cipher.Name?.EncryptedString;
|
||||||
Notes = cipher.Notes?.EncryptedString;
|
Notes = cipher.Notes?.EncryptedString;
|
||||||
Favorite = cipher.Favorite;
|
Favorite = cipher.Favorite;
|
||||||
|
LastKnownRevisionDate = cipher.RevisionDate;
|
||||||
|
|
||||||
switch (Type)
|
switch (Type)
|
||||||
{
|
{
|
||||||
|
@ -118,5 +120,6 @@ namespace Bit.Core.Models.Request
|
||||||
public List<PasswordHistoryRequest> PasswordHistory { get; set; }
|
public List<PasswordHistoryRequest> PasswordHistory { get; set; }
|
||||||
public Dictionary<string, string> Attachments { get; set; }
|
public Dictionary<string, string> Attachments { get; set; }
|
||||||
public Dictionary<string, AttachmentRequest> Attachments2 { get; set; }
|
public Dictionary<string, AttachmentRequest> Attachments2 { get; set; }
|
||||||
|
public DateTime LastKnownRevisionDate { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,8 @@ namespace Bit.Core.Services
|
||||||
Favorite = model.Favorite,
|
Favorite = model.Favorite,
|
||||||
OrganizationId = model.OrganizationId,
|
OrganizationId = model.OrganizationId,
|
||||||
Type = model.Type,
|
Type = model.Type,
|
||||||
CollectionIds = model.CollectionIds
|
CollectionIds = model.CollectionIds,
|
||||||
|
RevisionDate = model.RevisionDate
|
||||||
};
|
};
|
||||||
|
|
||||||
if (key == null && cipher.OrganizationId != null)
|
if (key == null && cipher.OrganizationId != null)
|
||||||
|
|
Loading…
Reference in a new issue