Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: screenshot censoring [WPB-2880] #1950

Merged
merged 14 commits into from
Jul 18, 2023
Merged

Conversation

saleniuk
Copy link
Contributor


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

We need to restrict team members from taking screenshots of the app when self deleting messages are enforced in team settings.

Solutions

Implement blocking content when making screenshots or screen recording when the team self-deleting setting is enforced. Also, provide a switch in the privacy settings for the user to enable it manually.

Dependencies (Optional)

Needs releases with:

Testing

How to Test

Enforce team self-deleting setting or enable screenshot censoring in the privacy settings and make a screenshot.

Attachments (Optional)

censor.screenshots.mov

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2023

Test Results

500 tests   499 ✔️  21s ⏱️
  73 suites      1 💤
  73 files        0

Results for commit 044cb2e.

♻️ This comment has been updated with latest results.

@AndroidBob
Copy link
Collaborator

Build 448 failed.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #1950 (9f1fa6e) into develop (0c375a7) will increase coverage by 1.70%.
The diff coverage is 37.50%.

❗ Current head 9f1fa6e differs from pull request most recent head 044cb2e. Consider uploading reports for the commit 044cb2e to get more accurate results

@@              Coverage Diff              @@
##             develop    #1950      +/-   ##
=============================================
+ Coverage      36.56%   38.26%   +1.70%     
- Complexity       847      886      +39     
=============================================
  Files            287      287              
  Lines          11299    11334      +35     
  Branches        1449     1452       +3     
=============================================
+ Hits            4131     4337     +206     
+ Misses          6760     6568     -192     
- Partials         408      429      +21     
Impacted Files Coverage Δ
...rc/main/kotlin/com/wire/android/ui/WireActivity.kt 0.00% <0.00%> (ø)
...d/ui/home/settings/privacy/PrivacySettingsState.kt 0.00% <0.00%> (ø)
.../home/settings/privacy/PrivacySettingsViewModel.kt 0.00% <0.00%> (ø)
...otlin/com/wire/android/ui/WireActivityViewModel.kt 69.25% <100.00%> (+69.25%) ⬆️
...me/conversations/info/ConversationInfoViewModel.kt 65.97% <100.00%> (+0.71%) ⬆️
...me/conversations/info/ConversationInfoViewState.kt 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d461832...044cb2e. Read the comment docs.

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@saleniuk saleniuk requested review from a team, typfel, alexandreferris, vitorhugods, mchenani and trOnk12 and removed request for a team July 14, 2023 14:52
@AndroidBob
Copy link
Collaborator

Build 450 succeeded.

The build produced the following APK's:

@AndroidBob
Copy link
Collaborator

Build 450 failed.

Copy link
Member

@vitorhugods vitorhugods left a comment

Choose a reason for hiding this comment

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

Incredible 👨🏻‍🍳🤌🏻

Really awesome. Just one tiny tiny tiny thing.

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 451 succeeded.

The build produced the following APK's:

@saleniuk saleniuk requested a review from MohamadJaara July 17, 2023 14:45
@AndroidBob
Copy link
Collaborator

Build 459 failed.

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 461 succeeded.

The build produced the following APK's:

@saleniuk saleniuk requested a review from MohamadJaara July 17, 2023 16:50
@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@saleniuk saleniuk requested a review from MohamadJaara July 17, 2023 17:14
@AndroidBob
Copy link
Collaborator

Build 462 succeeded.

The build produced the following APK's:

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 470 succeeded.

The build produced the following APK's:

@github-actions
Copy link
Contributor

Build (beta-debug) available here. Scroll down to Artifacts!

@github-actions
Copy link
Contributor

Build (dev-debug) available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 488 succeeded.

The build produced the following APK's:

@saleniuk saleniuk added this pull request to the merge queue Jul 18, 2023
Merged via the queue into develop with commit a44c67b Jul 18, 2023
@saleniuk saleniuk deleted the feat/screenshot_censoring branch July 18, 2023 16:49
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants