Rate this page:

ConversationParticipant

Participant of a Conversation.

In order to apply changes made by setters, call one of the following methods:

The default permissions for all participants are: write / edit / remove their own messages.

The creator of any conversation by default:

Note that changing these properties does not send the changes to the cloud. Use Conversation.editParticipants or Messenger.createConversation to submit all changes at once.

Constructors

ConversationParticipant

Copy URL

IM user id. Can be retrieved from User.imId

Parameters

  • imUserId:

    Long

    IM user id. Can be retrieved from User.imId

  • lastReadEventSequence:

    Long

    The sequence of the last read event in a conversation. Participants mark events as read via Conversation.markAsRead.

Methods

toString

Copy URL

Returns

  • type:

    String

Props

canEditAllMessages

Copy URL

Whether the participant can edit messages other than its own. The default value is false.

It could be set only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

canEditMessages

Copy URL

Whether the participant can edit its own messages in the conversation. The default value is true.

It could be changed only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

canManageParticipants

Copy URL

Whether the conversation participant can manage other participants in the conversation:

  • add, remove and edit permissions
  • add and remove participants

The default value is false.

It could be set only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

canRemoveAllMessages

Copy URL

Whether the participant can remove messages other than its own. The default value is false.

It could be set only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

canRemoveMessages

Copy URL

Whether the participant can remove its own messages in the conversation. The default value is true.

The permission is given by default.

It could be changed only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

canWrite

Copy URL

Whether the participant can write in the conversation. The default value is true.

It could be changed only if the user that calls this method has the ConversationParticipant.canManageParticipants permission.

Returns

  • type:

    Boolean

imUserId

Copy URL

IM user id. Can be retrieved from User.imId

Returns

  • type:

    Long

isOwner

Copy URL

Whether the participant is the owner of the conversation. The default value is false.

There could be more than one owner in the conversation.

It could be set only if the user that calls this method has the ConversationParticipant.canManageParticipants permission and ConversationParticipant.isOwner permissions.

Returns

  • type:

    Boolean

lastReadEventSequence

Copy URL

The sequence of the last read event in a conversation. Participants mark events as read via Conversation.markAsRead.

Returns

  • type:

    Long