addToBlacklist

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

Adds a user to the blocklist.

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

Since

5.0.0

Parameters

userId

The user ID.

callback

Callback for adding to the blocklist.