Skip to content
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

[#1306] Fix contact metadata problem #1307

Closed
wants to merge 34 commits into from

Conversation

AitorAlgorta
Copy link
Contributor

closes #1306

stayprodio
stayprodio previously approved these changes Mar 19, 2021
Copy link
Contributor

@stayprodio stayprodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
image

@@ -28,7 +29,7 @@ const mapDispatchToProps = dispatch => ({
addMessages: (conversationId: string, messages: Message[]) => dispatch(addMessagesAction({conversationId, messages})),
onChannel: (channel: Channel) => dispatch(setChannelAction(channel)),
getConversationInfo: (conversationId: string) => dispatch(getConversationInfo(conversationId)),
onMetadata: (metadataEvent: MetadataEvent) => dispatch(setMetadataAction(metadataEvent)),
onMetadata: (metadataEvent: MetadataEvent) => dispatch(setMetadataAction(camelcaseKeys(metadataEvent, {deep: true}))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing the stop path for user_data that @AudreyKj implemented in other parts where we map metadata. It's needed, because fields on metadata.user_data are set by the user so they don't conform to our casing

@@ -209,6 +209,10 @@ function allReducer(
// Ensure that there is always a display name present
...pick(state.items[action.payload.identifier]?.metadata, 'contact.displayName'),
...(<MetadataEvent<ConversationMetadata>>action.payload).metadata,
contact: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pick line above its meant to fix this very issue 🤔 So having both is probably not good.

Thorsten and others added 23 commits March 19, 2021 15:49
Bumps [react-window-infinite-loader](https://github.com/bvaughn/react-window-infinite-loader) from 1.0.5 to 1.0.7.
- [Release notes](https://github.com/bvaughn/react-window-infinite-loader/releases)
- [Changelog](https://github.com/bvaughn/react-window-infinite-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bvaughn/react-window-infinite-loader/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [react-window](https://github.com/bvaughn/react-window) from 1.8.5 to 1.8.6.
- [Release notes](https://github.com/bvaughn/react-window/releases)
- [Changelog](https://github.com/bvaughn/react-window/blob/master/CHANGELOG.md)
- [Commits](bvaughn/react-window@1.8.5...1.8.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump redux-starter-kit from 0.8.1 to 2.0.0

Bumps [redux-starter-kit](https://github.com/reduxjs/redux-starter-kit) from 0.8.1 to 2.0.0.
- [Release notes](https://github.com/reduxjs/redux-starter-kit/releases)
- [Commits](https://github.com/reduxjs/redux-starter-kit/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* Switch to the redux toolkit instead

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Pröschel <chris@airy.co>
Bumps [style-loader](https://github.com/webpack-contrib/style-loader) from 1.3.0 to 2.0.0.
- [Release notes](https://github.com/webpack-contrib/style-loader/releases)
- [Changelog](https://github.com/webpack-contrib/style-loader/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/style-loader@v1.3.0...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [css-loader](https://github.com/webpack-contrib/css-loader) from 3.6.0 to 5.1.3.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases)
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md)
- [Commits](webpack-contrib/css-loader@v3.6.0...v5.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump webpack-cli from 3.3.12 to 4.5.0

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.12 to 4.5.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Try and see if the anonymous pipe is at fault

* ugprade bazel tools for cli 4.5

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Pröschel <chris@airy.co>
* Bump ejs-compiled-loader from 1.1.0 to 3.0.0

Bumps [ejs-compiled-loader](https://github.com/bazilio91/ejs-compiled-loader) from 1.1.0 to 3.0.0.
- [Release notes](https://github.com/bazilio91/ejs-compiled-loader/releases)
- [Commits](bazilio91/ejs-compiled-loader@1.1...3.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* remove ejs compiled loader

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Pröschel <chris@airy.co>
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.10 to 7.13.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.12/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 7.2.2 to 7.2.3.
- [Release notes](https://github.com/reduxjs/react-redux/releases)
- [Changelog](https://github.com/reduxjs/react-redux/blob/master/CHANGELOG.md)
- [Commits](reduxjs/react-redux@v7.2.2...v7.2.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bitboxer and others added 10 commits March 23, 2021 10:47
…when extended it before with a long text

closes #1298
* added docs for twilio source

* added images for twilio

* continued twilio sms source

* added twilio sms

* added whatsapp source

* fixed sms channels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix fail contact metadata in inbox
7 participants