How to receive message from all chat threads

kw 1 Reputation point
2022-04-21T04:58:43.933+00:00

I try to implement a list that shows all chat threads with the last message, if any thread receives the new message, I want to put that thread at the top of the list, but I cannot find any API that can receive the message from all threads.

Is there have any way to achieve this?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
684 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,366 Reputation points
    2022-04-23T16:57:52.877+00:00

    Thanks for reaching here! Could you please share some more details. You probably need to use a combination of API calls for that. Also depending on the use case, some SDKs will have realtime notifications available so the client can subscribe to new messages without having to call the APIs.

    Assuming you want to get the list of threads for a particular user, you can use the GetChatThreads operation in any of the SDKs. It will give you the list of threads with the datetime for the last message received on.

    Let us know.