get https://{appid}.api-{region}.cometchat.io/v3/users//messages
Fetches messages between onBehalfOfuid and an uid from path param.
Iterating through List User Messages API:
- count is the number of records in the data property.
- current_page is the value of page sent as query param, default=0.
- total_pages is the number of pages available. To reduce the server load we are not calculating the total number of pages. We are checking only if there exists a new page. Thus the value of total page can be either equal to current_page or current_page+1.
- if total_pages == current_page there won't be any record on the next page
- if total_pages == current_page+1 we can make the request to fetch the next set of records.
For more details please visit here
By default, the searchKey is searched only in message text. However, if you enable Conversation & Advanced Search feature, the searchKey will be searched in message text, file name, mentions & mime type of the file.
The Conversation & Advanced Search feature is only available in Advanced & Custom plans. If you're already on one of these plans, please enable the Conversation & Advanced Search feature from CometChat Dashboard (Open your app, navigate to Chats -> Settings -> General Configuration)
Feature | Basic Search | Advanced Search |
---|---|---|
Text search | ✅ | ✅ |
File name search | ❌ | ✅ |
Mentions search | ❌ | ✅ |
Mime type search | ❌ | ✅ |
Attachments | ❌ | ✅ |
Links | ❌ | ✅ |
Reactions | ❌ | ✅ |
Mentions | ❌ | ✅ |
Mentioned Uids | ❌ | ✅ |