Block / Unblock

1. View Blocked Users

The list is paginated, so to get to the next page, you can pass the last TPUser from the previous list to get to the next page.

await TalkPlusAPI.getBlockedUsers(lastUser, (blockedUsers, hasNext) {

}, errorCallback: (errorCode, errorMessage){

});

2. Block / Unblock Users

You can block or unblock users.

// block
await TalkPlusAPI.blockUser(
    targetId, 
    errorCallback: (errorCode, errorMessage){}
);

// unblock
await TalkPlusAPI.unblockUser(
    targetId, 
    errorCallback: (errorCode, errorMessage){}
);

Please refer to the following limitations:

Last updated