[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / removeFromBlacklist # Function: removeFromBlacklist() > **removeFromBlacklist**(`userId`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> 移出黑名单 ## Parameters ### userId `string` 用户 ID ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`void`\>\> ## Description 本功能暂仅限于在 Electron 解决方案中使用,将用户移出黑名单之后,将恢复接收对方发来的任何单聊消息 ## Since 5.4.0 ## Example 移出黑名单示例: ```ts const userId = 'userId'; const res = await RongIMLib.removeFromBlacklist(userId); console.log('移出黑名单结果:', res); ```