updateThreadsReadForUser method

Future<void> updateThreadsReadForUser(
  1. String userId,
  2. String teamId
)

Mark all threads that user is following as read

Mark all threads that user is following as read Minimum server version: 5.29 ##### Permissions Must be logged in as the user or have edit_other_users permission.

Parameters:

  • String userId (required): The ID of the user. This can also be "me" which will point to the current user.

  • String teamId (required): The ID of the team in which the thread is.

Implementation

Future<void> updateThreadsReadForUser(
  String userId,
  String teamId,
) async {
  final response = await updateThreadsReadForUserWithHttpInfo(
    userId,
    teamId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}