-
Notifications
You must be signed in to change notification settings - Fork 334
Add TeamId to conversation.delete event #4618
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
Add TeamId to conversation.delete event #4618
Conversation
Delete unused ConversationDelete type.
| ConversationAction tag -> | ||
| Sem r LocalConversationUpdate | ||
| updateLocalConversationUnchecked lconv qusr con action = do | ||
| updateLocalConversationUnchecked lconv qusr con tid action = do |
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.
I would prefer to use the team ID from the metadata of the Conversation value that is passed here. So that we do not have to thread the tid value through all the way from the deleteTeamConverstion handler. That would be less noisy and potentially reduce merge conflicts.
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.
Thanks for the hint! (I wasn't aware that the TeamID is there as well) 👍
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.
I've adjusted the code now accordingly.
Co-authored-by: Leif Battermann <[email protected]>
This avoids handing a separate TeamId argument around.
Add the
TeamIdto the payload ofconversation.deleteevents. The field'spath is
data.teamId.This should be fully backwards compatible: Older consumers can simply ignore this field.
I'm a bit uncertain about the name of the field
teamId. Wouldteambe better? 🤔Ticket: https://wearezeta.atlassian.net/browse/WPB-17738
Checklist
changelog.d