delete

fun delete(): Completable

Deprecated

This function is deprecated, please use AmityChatClient.newMessageRepository().softDeleteMessage() instead

Replace with

import com.amity.socialcloud.sdk.api.chat.message.AmityMessageRepository
AmityChatClient.newMessageRepository().softDeleteMessage()