Skip to content

Issue 1682 preview atts for enterprise#1697

Merged
tomholub merged 15 commits intomasterfrom
issue_1682_preview_atts
Mar 7, 2022
Merged

Issue 1682 preview atts for enterprise#1697
tomholub merged 15 commits intomasterfrom
issue_1682_preview_atts

Conversation

@DenBond7
Copy link
Collaborator

@DenBond7 DenBond7 commented Feb 22, 2022

This PR added a custom logic for enterprise users to manipulate attachments (view, download)

close #1682


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities

@DenBond7 DenBond7 force-pushed the issue_1682_preview_atts branch from fe20be6 to 97c34b4 Compare February 23, 2022 15:02
@DenBond7 DenBond7 force-pushed the issue_1682_preview_atts branch from 97c34b4 to 8c37646 Compare February 23, 2022 17:59
@DenBond7 DenBond7 force-pushed the issue_1682_preview_atts branch from ada2b96 to d042b58 Compare March 2, 2022 16:13
@DenBond7 DenBond7 force-pushed the issue_1682_preview_atts branch 2 times, most recently from 3faf7f3 to 57aff14 Compare March 3, 2022 14:47
@DenBond7 DenBond7 force-pushed the issue_1682_preview_atts branch from 57aff14 to 5d6ac83 Compare March 3, 2022 15:45
@DenBond7 DenBond7 marked this pull request as ready for review March 4, 2022 16:25
@DenBond7 DenBond7 requested a review from IvanPizhenko as a code owner March 4, 2022 16:25
Comment on lines +77 to +81
val email =
attachmentInfo.email ?: return@withContext Result.success(byteArrayOf())
val account = getAccountEntityWithDecryptedInfoSuspend(
roomDatabase.accountDao().getAccount(email)
) ?: return@withContext Result.success(byteArrayOf())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't missing email cause an error to be thrown?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I will post a new issue for that.

@tomholub tomholub merged commit 475b536 into master Mar 7, 2022
@tomholub tomholub deleted the issue_1682_preview_atts branch March 7, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preview attachment contents

2 participants