Skip to main content

Get Chatroom Actions

These diverse chatroom types cater to various communication needs, providing flexibility and control over the conversations within your React Native chat application. A chatroom can be created by the community manager through Dashboard only.

Chatroom Actions returns the actions allowed in the chatroom like Mute/Unmute, Join/Unjoin, ShareChatroom and ViewParticipants along with total number of participants.

Fetch chatroom actions

  1. To fetch the chatroom, use the getChatroomActions() method of the client you initialised.
  2. Pass in the required parameter chatroomId.
  3. Process the response as per your requirement.
const payload: any = {
chatroomId: 89899, // pass in your chatroomId.
};
const response = await lmChatClient?.getChatroomActions(payload);

if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}

Chatroom Request

List of parameters supported.

VariableTypeDescriptionOptional
chatroomIdnumberChatroom Id
pagenumberPage Nuber✔️
apiTypenumberAPI Type✔️

Get Chatroom Response

List of parameters returned in the response

VariableTypeDescriptionOptional
accessWithoutSubscriptionbooleanBoolean to access without subscription
canAccessSecretChatroombooleanBoolean to check access for secret chatroom
chatroomActionsChatroomActions[]Array of chatroom actions
participantCountnumberTotal number of participants in a chatroom