updateThreadReadForUser method

Future<void> updateThreadReadForUser(
  1. String userId,
  2. String teamId,
  3. String threadId,
  4. String timestamp,
)

Mark a thread that user is following read state to the timestamp

Mark a thread 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.

  • String threadId (required): The ID of the thread to update

  • String timestamp (required): The timestamp to which the thread's "last read" state will be reset.

Implementation

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