-
Notifications
You must be signed in to change notification settings - Fork 291
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: Improve event builder #17756
base: dev
Are you sure you want to change the base?
feat: Improve event builder #17756
Conversation
Quality Gate passedIssues Measures |
// const creationEvent = conversationEntity.isGroup() | ||
// ? EventBuilder.buildGroupCreation(conversationEntity, isTemporaryGuest, timestamp) | ||
// : EventBuilder.build1to1Creation(conversationEntity); |
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.
🤔 what to do with this?
@@ -2304,7 +2347,12 @@ export class ConversationRepository { | |||
}) => { | |||
switch (conversationVerificationState) { | |||
case ConversationVerificationState.VERIFIED: | |||
const allVerifiedEvent = EventBuilder.buildAllVerified(conversationEntity); | |||
// const allVerifiedEvent = EventBuilder.buildAllVerified(conversationEntity); |
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.
also unneeded?
@@ -135,7 +135,7 @@ describe('ProteusConversationVerificationStateHandler', () => { | |||
expect(conversationB.verification_state()).toBe(ConversationVerificationState.VERIFIED); | |||
expect(conversationAB.is_verified()).toBeDefined(); | |||
expect(conversationAB.is_verified()).toBeTruthy(); | |||
expect(EventBuilder.buildAllVerified).not.toHaveBeenCalled(); | |||
// expect(EventBuilder.buildAllVerified).not.toHaveBeenCalled(); |
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.
guess this should be replaced with createBaseEvent
@@ -169,7 +169,7 @@ describe('ProteusConversationVerificationStateHandler', () => { | |||
expect(conversationAB.verification_state()).toBe(ConversationVerificationState.VERIFIED); | |||
expect(conversationB.verification_state()).toBe(ConversationVerificationState.VERIFIED); | |||
expect(conversationC.verification_state()).toBe(ConversationVerificationState.VERIFIED); | |||
expect(EventBuilder.buildAllVerified).toHaveBeenCalledTimes(3); | |||
// expect(EventBuilder.buildAllVerified).toHaveBeenCalledTimes(3); |
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.
same
Quality Gate passedIssues Measures |
Description
Screenshots/Screencast (for UI changes)
Checklist
Important details for the reviewers
(Delete this section if unnecessary)