Skip to content

Conversation

@supersven
Copy link
Contributor

@supersven supersven commented Jun 16, 2025

Add the TeamId to the payload of conversation.delete events. The field's
path 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. Would team be better? 🤔

Ticket: https://wearezeta.atlassian.net/browse/WPB-17738

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 16, 2025
@supersven supersven marked this pull request as ready for review June 17, 2025 10:17
@supersven supersven requested review from a team as code owners June 17, 2025 10:17
ConversationAction tag ->
Sem r LocalConversationUpdate
updateLocalConversationUnchecked lconv qusr con action = do
updateLocalConversationUnchecked lconv qusr con tid action = do
Copy link
Contributor

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.

Copy link
Contributor Author

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) 👍

Copy link
Contributor Author

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.

supersven and others added 2 commits June 18, 2025 12:04
This avoids handing a separate TeamId argument around.
@supersven supersven requested a review from battermann June 18, 2025 12:36
@supersven supersven merged commit 1109dfc into develop Jun 18, 2025
8 checks passed
@supersven supersven deleted the sventennie/conversation-delete-event-teamid branch June 18, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants