v3 apps are compatible only with v3.x SDKs and will not function with v2.x SDKs. In case you want to migrate an existing v2 app to v3, you can achieve this from the CometChat Dashboard.
Delivery Receipts
In v2.x, the messages were being marked as delivered internally by the SDKs. Starting v3, we have stopped marking the messages as delivered internally and it will have to be managed via the SDK. You can read more about themarkAsDelivered() method here.
Read Receipts
Starting v3.0, the method signature has been changed. Now themarkAsRead() takes 4 parameters: messageId,receiverId, receiverType & senderId as input. This method will mark all the messages before the provided messageId for the conversation with the specified receiverId as read. Also, we have added one more signature of markAsRead() which takes only 1 parameter: message
You can read more about the markAsRead() method here.
- Mark as Read
User/Group Tags in Conversation
In v2.x, the user/group tags were by default fetched in aConversation Object while fetching the Conversation List.
Starting v3, we have added a method withUserAndGroupTags() to the ConversationsRequestBuilder class to fetch the user/group tags in a Conversation Object while fetching the Conversation List.
- Java
- Kotlin