blockUser

suspend fun SendbirdChat.blockUser(userIdToBlock: String): User

Blocks the specified User. Blocked User cannot send messages to the blocker.

Return

The blocked User object.

Since

4.15.0

Parameters

userIdToBlock

User ID to block.


fun SendbirdChat.blockUser(userIdToBlock: String, handler: ResultHandler<User>?)

Blocks the specified User ID. Blocked User cannot send messages to the blocker.

Since

4.15.0

Parameters

userIdToBlock

User ID to block.

handler

Callback handler.