VIConversationParticipant constructor
Create a new participants.
Use VIConversationConfig.participants or VIConversation.addParticipants to add participants to the conversation.
imUserId
- 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
Implementation
VIConversationParticipant(
this.imUserId, {
this.isOwner = false,
this.canWrite = true,
this.canEditMessages = true,
this.canEditAllMessages = false,
this.canRemoveMessages = true,
this.canRemoveAllMessages = false,
this.canManageParticipants = false,
}) : lastReadSequence = 0;