Rate this page:

VIConversationParticipant

Class that represents a participant of the conversation.

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

The creator of any conversation by default:

  • is the owner (ConversationParticipant.isOwner() is true)
  • can edit / remove other participant's messages
  • can manage other participants

Constructors

VIConversationParticipant

Copy URL

Create a new participants.

Use VIConversationConfig.participants or VIConversation.addParticipants to add participants to the conversation.

Parameters

  • imUserId:

    int

    IM User id. Can be retrieved from VIUser.imId Optional isOwner - determines if the conversation participant is an owner Optional canWrite - determines if the conversation participant can send messages to the conversation Optional canEditMessages - determines if the conversation participant can edit its own messages Optional canEditAllMessages - determines if the conversation participant can edit messages other than its own Optional canRemoveMessages - determines if the conversation participant can remove its own messages Optional canRemoveAllMessages - determines if the conversation participant can remove messages other than its own Optional canManageParticipants - determines if the participant can manage other participants in the conversation

  • isOwner:

    bool

    Optional
  • canWrite:

    bool

    Optional
  • canEditMessages:

    bool

    Optional
  • canEditAllMessages:

    bool

    Optional
  • canRemoveMessages:

    bool

    Optional
  • canRemoveAllMessages:

    bool

    Optional
  • canManageParticipants:

    bool

    Optional

Props

canEditAllMessages

Copy URL

bool

canEditAllMessages

A bool value that determines whether the conversation participant can edit messages other than its own.

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

canEditMessages

Copy URL

bool

canEditMessages

A bool value that determines whether the conversation participant can edit its own messages. Default is true

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

canManageParticipants

Copy URL

bool

canManageParticipants

A bool value that determines whether the conversation participant can manage other participants in the conversation:

  • add / remove / edit permissions
  • add / remove participants If true and isOwner is true, the participant can manage other owners.

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

canRemoveAllMessages

Copy URL

bool

canRemoveAllMessages

A bool value that determines whether the conversation participant can remove messages other than its own.

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

canRemoveMessages

Copy URL

bool

canRemoveMessages

A bool value that determines whether the conversation participant can remove its own messages. Default is true

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

canWrite

Copy URL

bool

canWrite

A bool value that determines whether the conversation participant can send messages to the conversation. Default is true

Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

imUserId

Copy URL

int

imUserId

The IM user id.

Returns

  • type:

    int

isOwner

Copy URL

bool

isOwner

A bool value that determines whether the conversation participant is an owner. There could be more than one owner in the conversation. If true, the participant can edit the conversation. If true and canManageParticipants is true, the participant can manage other owners. Note that a value change doesn't apply changes by itself; there are appropriate methods for applying:

Returns

  • type:

    bool

lastReadSequence

Copy URL

int

lastReadSequence

Sequence of the event that was last marked as read or 0 if the participant didn't mark events as read.

Returns

  • type:

    int