ConversationConfig
Configuration for new conversations created via the Messenger.createConversation method.
Props
customData
customData: null | UnknownObject
Custom data associated with the conversation (up to 5 KB).
You can update the custom data later via the Conversation.edit method.
isDirect
isDirect: boolean
Optional. Whether the conversation is direct. The default value is false.
A direct conversation is a private conversation established between exactly two users. This is a E2E conversation which is not shared with other users. Only one direct conversation can exist between the same two users. If one of the users attempts to create a new direct conversation with the same user via the Messenger.createConversation method, the method returns the UUID of the existing direct conversation. A direct conversation is always private and never is public or uber.
isPublicJoin
isPublicJoin: boolean
Optional. Whether the conversation is public (isDirect is false) or direct (isDirect is true). The default value is false.
In public conversations, any user can join via the Messenger.joinConversation method by specifying the UUID of the conversation they join. Use the Messenger.getPublicConversations method to retrieve a list of UUIDs for all public conversations.
A public conversation cannot be direct.
isUber
isUber: boolean
Optional. Whether the conversation is uber. The default value is false.
In uber conversations, users cannot receive messages sent to the conversation after they leave.
An uber conversation cannot be direct.
participants
participants:
Conversation participants.
You can update the list of participants later via the following methods: