fix: disable message composer only for degraded legal hold conversation status #2674
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Sending messages is disabled when one of 1:1 conversation members is under legal hold even when both members consent to legal hold.
Causes (Optional)
Interaction is disabled not only when legal hold status for conversation is
DEGRADED
(it means that the app got connection update withMISSING_LEGALHOLD_CONSENT
status for this other member) but also when the status isENABLED
, but it shouldn't be the case, becauseENABLED
legal hold status can happen only when both consent to legal hold so at this point both are allowed to send messages to each other.Solutions
Disable interaction only when legal hold status for 1:1 conversation is
DEGRADED
.Testing
Test Coverage (Optional)
How to Test
Have 1:1 conversation with other team member and enable legal hold for that member.
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.