addToBlocklist

public final Unit addToBlocklist(String userId, ErrorHandler handler)

Adds a user to the block list.

Blocked users will be unable to send messages to the current user.

Parameters

userId

The user ID to block

handler

Error callback; null error indicates success