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: Update isReplyAllowed in Notifications according LegalHoldStatus [WPB-7425] #2874

Conversation

borichellow
Copy link
Contributor

What's new in this PR?

Issues

When LegalHold activated and user was not notified about it, we need to disable "Reply" feature for notifications.

Causes (Optional)

Wasn't implemented

Solutions

Implement it.

Comment on lines 122 to 125
val isReplyAllowed = messages.first().run {
degradedConversationNotified
&& (legalHoldStatus == ConversationEntity.LegalHoldStatus.ENABLED && !legalHoldStatusChangeNotified)
}
Copy link
Member

Choose a reason for hiding this comment

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

please add tests

Copy link
Contributor

github-actions bot commented Jul 11, 2024

Test Results

2 897 tests   2 774 ✔️  31s ⏱️
   493 suites     123 💤
   493 files           0

Results for commit 4d4d5db.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Jul 11, 2024

Datadog Report

All test runs c9f66f4 🔗

2 Total Test Services: 0 Failed, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Test Service View
kalium-ios 0 0 0 2774 123 1.98s Link
kalium-jvm 0 0 0 2915 107 6.26s Link

Copy link

sonarcloud bot commented Jul 12, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release/android-cycle-4.6@33eff5b). Learn more about missing BASE report.

Additional details and impacted files
@@                     Coverage Diff                      @@
##             release/android-cycle-4.6    #2874   +/-   ##
============================================================
  Coverage                             ?   58.42%           
  Complexity                           ?        7           
============================================================
  Files                                ?     1185           
  Lines                                ?    46650           
  Branches                             ?     4432           
============================================================
  Hits                                 ?    27256           
  Misses                               ?    17411           
  Partials                             ?     1983           
Files Coverage Δ
...ata/notification/LocalNotificationMessageMapper.kt 44.68% <100.00%> (ø)
...re/kalium/persistence/dao/message/MessageEntity.kt 76.10% <100.00%> (ø)
...re/kalium/persistence/dao/message/MessageMapper.kt 58.78% <100.00%> (ø)

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 33eff5b...4d4d5db. Read the comment docs.

@MohamadJaara MohamadJaara merged commit 63ec58d into release/android-cycle-4.6 Jul 15, 2024
18 checks passed
@MohamadJaara MohamadJaara deleted the feat/update_is_reply_allowed_in_notifications_according_legal_hold_status branch July 15, 2024 09:13
@echoes-hq echoes-hq bot added the echoes: bugs Technical or functional defects in the product label Jul 16, 2024
@b1pb1p b1pb1p added echoes: features End-user visible changes intended to create customer value and removed echoes: bugs Technical or functional defects in the product labels Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: features End-user visible changes intended to create customer value 🚨 Potential breaking changes 👕 size: M type: feature ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants