addToBlacklist

public abstract void addToBlacklist(String userId, RongIMClient.OperationCallback callback)

Add a user to the blocklist.

After adding the user to the blocklist, when the user sends a message, they will receive a notification saying Your message has been sent, but was rejected by the recipient. However, you can still send messages to the user.

Parameters

userId

The user ID.

callback

Callback triggered when the user is added to the blocklist.