Custom UI- ChatInvites

Add your component within Root with this line:

<Delivered.ChatInvites render={props => <YourCustomComponent {...props} />} />

Functionalities

  • display invitations
  • revoke invitation

Provided props

  • invites (array) contains all of the chat’s invitations.
  • revokeInvite(inviter, invitee) (function) takes two arguments: the inviter user ID and the invitee user ID. Revokes the invitation and removes it from invites.
  • users (object) contains all users and their profiles.
  • canInvite (boolean) indicates whether or not the user can revoke invitations.

Next: InviteButtons