Skip to main content

Delete a comment by comment ID.

API Reference

/**
* delete a comment
* @param momentId Moments post ID
* @param commentId comment ID
* @param callback result callback
*/
void removeComment(String momentId, String commentId, IMessageManager.ISimpleCallback callback);

Code Example

JIM.getInstance().getMomentManager().removeComment("momentId", "commentId", new IMessageManager.ISimpleCallback() {
@Override
public void onSuccess() {
}

@Override
public void onError(int errorCode) {
}
});