SDKsiOS
Block a user
Add a user to the current account’s blocklist with OpenIM iOS SDK.
[[OIMManager manager] addToBlackList:targetUserID
ex:@"{\"source\":\"profile-menu\"}"
onSuccess:nil
onFailure:nil];A blocklist entry is a one-way relationship and is distinct from a group mute or platform-level account suspension. A successful callback does not mean that the event has already arrived.
This page owns onBlackAdded:. Upsert the supplied OIMBlackInfo by userID. Register and remove the same stable OIMFriendshipListener instance.
Was this page helpful?