removeRecentCustomStatus method

Future<void> removeRecentCustomStatus(
  1. String userId,
  2. MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest
)

Delete user's recent custom status

Deletes a user's recent custom status by removing the specific status from the recentCustomStatuses in the user's props and updates the user. ##### Permissions Must be logged in as the user whose recent custom status is being deleted.

Parameters:

Implementation

Future<void> removeRecentCustomStatus(
  String userId,
  MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest,
) async {
  final response = await removeRecentCustomStatusWithHttpInfo(
    userId,
    mmRemoveRecentCustomStatusRequest,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}