Browse SDKs · React Native
Platform
SDKsReact Native

Remove user from blacklist

Unblock a specified user and remove them from the blacklist using the OpenIM React Native SDK.

Copy

Unblock a user by removing them from the current account's blacklist:

await OpenIMSDK.removeBlack(blackUserID);

Parameters

ParameterTypeRequiredDescription
blackUserIDstringYesTarget user ID to unblock and remove from the blacklist.

Return value

A resolved Promise confirms that the user was removed from the blacklist on the server.

Unblocking triggers the OnBlackDeleted event. Remove the entry keyed by userID from your local blacklist cache. For event listener details, see Get blacklist.