Rate this page:

ConversationParticipant

Interface that represents a participant of the conversation (see Conversation.participants. The default permissions for all participants are: write / edit / remove their own messages.

Props

canEdit

Optional
Copy URL
canEdit: 

boolean

True if a user can edit own messages in the conversation. The permission is given by default. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

canEditAll

Optional
Copy URL
canEditAll: 

boolean

True if a user can edit other users' messages in the conversation. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

canManageParticipants

Optional
Copy URL
canManageParticipants: 

boolean

True if a user can manage conversation participants: edit permissions and add/remove participants. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

canRemove

Optional
Copy URL
canRemove: 

boolean

True if a user can remove own messages in the conversation. The permission is given by default. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

canRemoveAll

Optional
Copy URL
canRemoveAll: 

boolean

True if a user can remove other users' messages in the conversation. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

canWrite

Optional
Copy URL
canWrite: 

boolean

True if a user can write messages in the conversation. The permission is given by default. Could be changed only by the user that has the ConversationParticipant.canManageParticipants or the ConversationParticipant.isOwner permission.

isOwner

Optional
Copy URL
isOwner: 

boolean

True if a user is an owner of the conversation. There can be more than one owner in the conversation. An owner can edit the conversation and has all other permissions.

lastRead

Optional
Copy URL
lastRead: 

number

The sequence of the message event that was marked as last read by this user in the conversation. Participants mark events as read via Conversation.markAsRead. Is '0' if the participant hasn't marked any event as read.

userId

Copy URL
userId: 

number

Messaging user id.