Gifted Chats works properly. However, when we get a message from a receiver. We only know the message but not the id.
So when add the new message to existing history array. We assign a random id with this
{
id: Math.round(Math.random() * 1000000)
...
}
However, there is a slight chance that these values can be same. Which means that messages can be out of order. Kindly tell if there is any way fix this or is it a issue
Gifted Chats works properly. However, when we get a message from a receiver. We only know the message but not the id.
So when add the new message to existing history array. We assign a random id with this
{
id: Math.round(Math.random() * 1000000)
...
}
However, there is a slight chance that these values can be same. Which means that messages can be out of order. Kindly tell if there is any way fix this or is it a issue