mirror of
https://github.com/bitwarden/android.git
synced 2025-01-12 11:17:30 +03:00
decrypt attachment with org id
This commit is contained in:
parent
6afccc2aea
commit
9a399e06f3
2 changed files with 3 additions and 3 deletions
|
@ -12,10 +12,10 @@ namespace Bit.App.Models.Page
|
||||||
public long Size { get; set; }
|
public long Size { get; set; }
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
|
|
||||||
public Attachment(Models.Attachment attachment)
|
public Attachment(Models.Attachment attachment, string orgId)
|
||||||
{
|
{
|
||||||
Id = attachment.Id;
|
Id = attachment.Id;
|
||||||
Name = attachment.FileName?.Decrypt();
|
Name = attachment.FileName?.Decrypt(orgId);
|
||||||
SizeName = attachment.SizeName;
|
SizeName = attachment.SizeName;
|
||||||
Size = attachment.Size;
|
Size = attachment.Size;
|
||||||
Url = attachment.Url;
|
Url = attachment.Url;
|
||||||
|
|
|
@ -231,7 +231,7 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
|
|
||||||
var attachmentsToAdd = _cipher.Attachments
|
var attachmentsToAdd = _cipher.Attachments
|
||||||
.Select(a => new VaultAttachmentsPageModel.Attachment(a))
|
.Select(a => new VaultAttachmentsPageModel.Attachment(a, _cipher.OrganizationId))
|
||||||
.OrderBy(s => s.Name);
|
.OrderBy(s => s.Name);
|
||||||
PresentationAttchments.ResetWithRange(attachmentsToAdd);
|
PresentationAttchments.ResetWithRange(attachmentsToAdd);
|
||||||
AdjustContent();
|
AdjustContent();
|
||||||
|
|
Loading…
Reference in a new issue