Custom message on delete returns null

SDK 2.0.2

It happened when I put many custom data value.
When I deleted it, custom message listener got null custom message

Sorry I am wrong. It caused by customType parameter. What are the acceptable customTypes? I found “file” and “image” were acceptable

Custom Type can take any String value based on your requirement. There is no restriction on the value the custom type parameter can take.
Hope this answers your question. If you have any more queries please let us know and we will be happy to help you with the same

  1. send this:

val customMessage = CustomMessage(convId, receiverType, “Location”, customData)

  1. delete it
  2. and this method below in receiver’s side will get null message

CometChat.addMessageListener(“message_listener”, object : CometChat.MessageListener() {
override fun onMessageDeleted(message: BaseMessage?) {
Timber.e(“Message Deleted ${message}”) //the message is null
}
})

Hello @hilmyas
We were able to replicate this issue at our end. Thank you for the detailed information from your end. We will be releasing a fix for this in our next version which is scheduled to go live on coming Monday. We will keep you posted on the same.
Please follow the below Github issue to track the progress for the same:

Appreciate your patience.

1 Like

Thank you for your support

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.