blockUser abstract method

Future<bool> blockUser({
  1. required String chatId,
  2. required String userId,
  3. required String blockedUserId,
})

Blocks a user.

  • chatId: ID of the chat
  • userId: ID of the user blocking
  • blockedUserId: ID of the user to block

Returns true if the operation succeeded.

Implementation

Future<bool> blockUser({
  required String chatId,
  required String userId,
  required String blockedUserId,
});