setParticipant method

void setParticipant(
  1. User user, [
  2. dynamic settings
])

Sets a participant of the conversation.

@remarks This method is idempotent and can be called multiple times.

@param user - A User object that identifies the person who is a participant of the conversation. The user is uniquely identified by their id; all other fields (name, photo etc) are overwritten in the TalkJS database each time they change. @param settings - An optional setting of participation, can be an initial access right or if user should be notified.

Implementation

external void setParticipant(User user, [dynamic settings]);