Skip to main content

Check DM Tab

Checks the direct message (DM) tab for the user and retrieves relevant information, such as the status of conversations or pending messages.

Steps to check the direct message tab

  1. Call the checkDMTab() function using the instance of LMChatClient.
  2. Process the response LMResponse<CheckDMTabResponse> to handle the relevant information.
LMChatClient.shared.checkDMTab { response in
if let result = response?.data {
// Handle success
print("DM Tab checked successfully.")
} else if let error = response?.error {
// Handle error
print("Error checking DM Tab: \(error.localizedDescription)")
}
}

Models

CheckDMTabResponse

VARIABLETYPEDESCRIPTIONOPTIONAL
clickedBoolIndicates whether the DM tab was clicked✔️
messagedBoolIndicates whether a message has been sent via the DM tab✔️
hideDMTabBoolIndicates whether the DM tab should be hidden✔️
isCMBoolIndicates whether the user is a CollabMates member✔️
unreadDMCountIntNumber of unread messages in the DM tab✔️