-
Notifications
You must be signed in to change notification settings - Fork 6
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: Ask user about messaging in Degraded conversation (WPB-1771) #2220
feat: Ask user about messaging in Degraded conversation (WPB-1771) #2220
Conversation
@@ -1056,6 +1061,19 @@ internal class ConversationDataSource internal constructor( | |||
} | |||
} | |||
|
|||
override suspend fun updateInformAboutVerificationBeforeMessagingFlag( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override suspend fun updateInformAboutVerificationBeforeMessagingFlag( | |
override suspend fun setInformAboutVerificationBeforeMessagingFlag( |
@@ -1056,6 +1061,19 @@ internal class ConversationDataSource internal constructor( | |||
} | |||
} | |||
|
|||
override suspend fun updateInformAboutVerificationBeforeMessagingFlag( | |||
conversationId: QualifiedID, | |||
updateFlag: Boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: updatedValue, or even value.
@@ -42,7 +42,8 @@ CREATE TABLE Conversation ( | |||
archived_date_time INTEGER AS Instant, | |||
-- mls_verification_status | |||
verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED", | |||
proteus_verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED" | |||
proteus_verification_status TEXT AS ConversationEntity.VerificationStatus NOT NULL DEFAULT "NOT_VERIFIED", | |||
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0 | |
degraded_conversation_notified INTEGER AS Boolean NOT NULL DEFAULT 0 |
or
should_inform_about_verification_before_messaging INTEGER AS Boolean NOT NULL DEFAULT 0 | |
notified_degraded_conversation INTEGER AS Boolean NOT NULL DEFAULT 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good👍, added some naming suggestions.
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
What's new in this PR?
Users need to be notified that the conversation where he/she going to send a message is degraded.
For that:
should_inform_about_verification_before_messaging
flag intoConversation
DB table