unblockUser method

Future<void> unblockUser(
  1. String userId
)

Unblocks a user.

userId is the ID of the user to unblock.

Throws an exception if unblocking fails.

Implementation

Future<void> unblockUser(String userId) async {
  try {
    await service.unblockUser(
      chatId: chatId,
      userId: currentUserId,
      blockedUserId: userId,
    );
  } catch (e) {
    _error = e.toString();
    notifyListeners();
    rethrow;
  }
}