Hello @dimaportenko,
I have checked this on my end and I am not able to reproduce the issue on our end.
Steps I followed,
- Updated the metadata of logged-in user using CometChat.updateCurrentUserDetails()
- Uninstalled the app.
- Reinstalled the app.
- In the success of CometChat.login(), I was able to get the metadata. The metadata was the same as what I updated before uninstalling the app.
I have used the following CometChat SDK versions,
"@cometchat-pro/react-native-calls": "2.0.3-beta1",
"@cometchat-pro/react-native-chat": "2.3.2"
The metadata once updated, will be persistent since it is stored in a persistent database.
Can you please share a code snippet of how you are updating the metadata & check if you are clearing the metadata while updating the user?
Also, as I mentioned in my reply on this thread. You should be storing this data inside a @private
key inside the metadata. Whatever you store inside the @private
key will not be visible to other users (when they fetch the user list). Whatever data you store outside the @private
key will be visible to other users (when they fetch the user list).
Warm Regards,
CometChat Pro
Mayur Bhandari