cometchat / chat-sdk-javascript

Voice & Video Calling and Text Chat SDK for JavaScript/Web
Other
30 stars 24 forks source link

Unread Conversation SDK support missing #88

Closed stevium closed 1 year ago

stevium commented 1 year ago

Describe the problem

SDK interface is missing a support for unread flag in CometChat.ConversationsRequestBuilder

What was the expected behavior?

There should be a way to provide unread flag to the CometChat.ConversationsRequestBuilder which should generate an endpoint URL similar to this one:

https://appid.api-us.cometchat.io/v3/conversations?unread=true&perPage=100&page=1

Reproduction

  1. Navigate to https://api-explorer.cometchat.com/reference/list-all-conversation
  2. Notice that unread flag should be supported image
  3. Open latest CometChat.d.ts (https://github.com/cometchat-pro/javascript-chat-sdk/blob/master/CometChat.d.ts#L2049)
  4. Notice that there is no way to provide unread flag to the ConversationsRequestBuilder

Environment

cometchat-helpcenter-bot commented 1 year ago

Keagan (CometChat Team) replied:

Hello,

Thank you for submitting this ticket.

I have raised this with our technical team, and if no additional information is needed from your end, our team will carry out an investigation and get in touch to provide an update.

Keagan Ellis CometChat

cometchat-helpcenter-bot commented 1 year ago

Aditya (CometChat Team) replied:

Hi there,

Unfortunately, at the moment, it is not feasible to fetch unread conversations via the SDK. You can use the Rest APIs to achieve this. You can find more information at: https://api-explorer.cometchat.com/reference/list-all-conversations with the unread parameter set as true

Please make sure you are calling this API from your server to the CometChat server to prevent exposing the API key on the front end. I am also sharing this feature request with the product team. Thank you for sharing your insightful feedback!

Your request is now with our product team, and I assure you that it will receive thoughtful consideration. Our Product Managers regularly review suggestions like yours, and even if we're unable to respond to each one individually, please know that your input plays a vital role in our development process. While I can't offer specific timelines, we'll earnestly work to consider your request in upcoming product releases.

Should you have any more questions or concerns, please feel free to get in touch. Thank you once again!

Thanks

Aditya Gokula CometChat