kw-4025 avatar image
0 Votes"
kw-4025 asked SnehaAgrawal-MSFT commented

How to receive message from all chat threads

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?

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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.

0 Votes 0 ·
kw-4025 avatar image kw-4025 SnehaAgrawal-MSFT ·

Sorry for late reply, I like to subscribe the new messages, and I found out the azure/communication-chat provide the realtime notifications to handle this.

Thanks for help.

0 Votes 0 ·

thanks for update here. Glad to know it helped.

0 Votes 0 ·

0 Answers