blockUser

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.


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

Deprecated

As of 4.17.0, replaced with awaitBlockUser(userIdToBlock).

Replace with

awaitBlockUser(userIdToBlock)

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.