Browse SDKs · iOS
SDKsiOS

Unblock a user

Remove a user from the current account’s blocklist with OpenIM iOS SDK.

Copy
[[OIMManager manager] removeFromBlackList:targetUserID
    onSuccess:nil
    onFailure:nil];

A successful callback does not mean that the event has already arrived. This page owns onBlackDeleted:. Remove the matching record from the blocklist by the payload's userID; query the complete blocklist again when reconciliation is needed.