Release Notes
Announcements
FriendshipAddToBlackList API (Details) to add a user to the blocklist, that is, block the user.// Add a user to the blocklistList<string> param = new List<string>{"user_id"};TIMResult res = TencentIMSDK.FriendshipAddToBlackList(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
FriendshipDeleteFromBlackList (Details) to remove a user from the blocklist, after which messages from the user can be received.// Remove a user from the blocklistList<string> param = new List<string>{"user_id"};TIMResult res = TencentIMSDK.FriendshipDeleteFromBlackList(param, (int code, string desc, List<FriendResult> result, string user_data)=>{// Process the async logic});
// Get the blocklistTIMResult res = TencentIMSDK.FriendshipGetBlackList((int code, string desc, List<FriendProfile> result, string user_data)=>{// Process the async logic});
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback