Hi! I’m using some widgets in my chat app and the appearance of those widgets change over time according to some backend resource states. The current appearance or style of those widgets is stored into the channel data by the backend (using the API) property and then read by the clients who are mobile (using the respective SDK) and web (using the API).
Problem I have is that after update the channel data by the backend side using the API, it’s sometimes returned the updated data into the API/SDK response and sometimes it doesn’t; however, every time I look at the channel info in the Sendbird’s dashboard, information is shown correctly. Let’s see an example to understand better:
Asume the initial data is something like this (please don’t pay attention to single or double quotes, it’s just for the example):
{
...
'data': '{"initial_information": "Some initial content"}'
...
}
Then I update the data and now in the Sendbird’s dashboard it’s shown like this:
{
...
'data': '{"initial_information": "Some initial content", "first_widget": {"style": "something"}}'
...
}
But for some reason when I list the channel info property first_widget
does not appear. Rare still, if I add a new property, in Sendbird’s dashboard it will look something like this:
{
...
'data': '{"initial_information": "Some initial content", "first_widget": {"style": "something"}, "second_widget": {"style": "something"}}'
...
}
And in that last case, when I list the channel data the response might contain all the information except the first_widget
property (that is, it returns even the third update but the second update is not returned), but every time I look at the Sendbird’s dashboard data is complete.
Hope you guys can help me with this.