Constraint:
- Conversations will not be updated once the size of the group exceeds 300.
- A conversation can have up to 25 tags with 100 characters per tag.
Conversations provide the last messages for every one-on-one and group conversation the logged-in user is a part of. This makes it easy for you to build a Recent Chats list.
| Parameters | Type | Description |
|---|---|---|
| conversationId | string | Specifies conversation’s unique ID. |
| conversationType | string | Specifies the type of conversation.Available types are: user group |
| unreadMessageCount | string | Specifies count of unread messages in that conversation. |
| createdAt | integer | Specifies unix timestamp when conversation was created. |
| updatedAt | integer | Specifies unix timestamp when conversation was last updated. |
| uid | string | Specifies the user’s unique ID for whom conversation is initiated. |
| lastMessage | nested object | Specifies details of that conversation’s last message, including one-one and group. This makes it easy to build a Recent Chats list. Couple of scenarios where the lastMessage property won’t be visible: a. If that message is deleted via SDK/API. b. If a new group is created and there is no message or no members are added to the group yet. |
| conversationWith | nested object | Specifies details of user or group with whom above mentioned user is having conversation. |