CometChat.init()
method now takes an additional parameter. This parameter is an object of the AppSettings
class. This object can be created by using the AppSettingsBuilder
class. The AppSettings
class provides the CometChat SDK with the below 2 details:
messageType
parameter could take in the constructor was CometChatConstants.MESSAGE_TYPE_TEXT(text)
, we have excluded the messageType
parameter from the TextMessage
constructor.
CometChat.markMessageAsRead()
which took the entire message object as the input parameter.
Starting v2.0, the method name has been changed to markAsRead()
which takes the messageId
, receiverId
, and receiverType
as input. This method, will mark all the messages before the provided messageId for the conversation with the specified receiverId
as read. For more information, please check here.
onMessageRead()
and the onMessageDelivered()
methods of the MessageListener
class since in v1.x single messages would be marked as read.
Starting v2.x, multiple messages are being read at a time. So the method names are changed a bit. onMessageRead()
is changed to onMessagesRead()
and onMessageDelivered()
is changed to onMessagesDelivered()
.
boolean
and fetches only friends if it is set to true
else it fetches all the users. By default it is set to false
. For more information, please check here.