Skip to content

Messages change order if some id is accidently same of two messages when other person sends message #30

Description

@HamzaTatheer

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions