cometchat / cometchat-uikit-react

Ready-to-use Chat UI Components for React (JavaScript/Web)
Other
89 stars 58 forks source link

When a new conversation is started, it is not appearing in the chats list #134

Closed marcosnc08 closed 11 months ago

marcosnc08 commented 11 months ago

Describe the problem

I am sending a message to a user using the api. After sending the message I go to the chat and I don't see the new chat with the sent message. If I reload the chat, I can see the message sent.

What was the expected behavior?

Receive the new message in real-time

Reproduction

Environment

Please provide the following:

I would like to know if I am missing something in the docs, or should implement this myself somehow.

Thanks!

cometchat-helpcenter-bot commented 11 months ago

Keagan (CometChat Team) replied:

Hello there,

Thank you for reaching out. I am Keagan from the Support team.

Can you please share the complete CURL request with us? A video demonstrating the Issue as well would be really helpful.

Regards

Keagan Ellis CometChat

marcosnc08 commented 11 months ago

Hey!

This is the CURL request:

curl --request POST \ --url https://246369726b4a0e47.api-us.cometchat.io/v3/messages \ --header 'Content-Type: application/json' \ --header 'User-Agent: insomnia/8.2.0' \ --header 'accept: application/json' \ --header 'apikey: blablabla' \ --header 'content-type: application/json' \ --header 'onBehalfOf: superhero2' \ --data '{ "category": "message", "type": "text", "data": { "text": "Hi Tom!" }, "receiver": "superhero1", "receiverType": "user" }'

After sending the first user from superhero2 to superhero1, I hear the sound of a new message in the chat but I cant see the message on the message list. I only see it after fully refreshing the page.

cometchat-helpcenter-bot commented 11 months ago

Keagan (CometChat Team) replied:

Thank you for sharing the CURL request.

As previously mentioned, could you kindly provide us with a video illustrating the problem?

Additionally, could you verify whether you have multiple tabs open with the chat interface? If you do, please close all tabs, open a single tab, log in, and verify if you can still encounter the issue.

Regards

Keagan Ellis CometChat