chatwoot / chatwoot-react-native-widget

React Native widget for Chatwoot
https://www.npmjs.com/package/@chatwoot/react-native-widget
MIT License
36 stars 40 forks source link

customAttributes is applied to all contacts #32

Closed grahamyesfit closed 1 year ago

grahamyesfit commented 1 year ago

When I supply attributes via the customAttributes property on ChatWootWidget, the property values are applied to all my contacts. In other words, all my contacts end up with matching attribute values.

I'm using @chatwoot/react-native-widget version 0.0.14. I'm self-hosted (on AWS), which is version cwctl v2.3.0 alpha build.

grahamyesfit commented 1 year ago

I figured out a workaround. By including the custom_attributes in the setUser call as a user property (custom_attributes), it will only apply those custom attributes to the appropriate user.

grahamyesfit commented 1 year ago

This doesn't work either. I'll post more information if I can get it.

grahamyesfit commented 1 year ago

Now I'm wondering if it just looks like this is happening because of server caching. Closing for good now, can't reliably reproduce :)