createTemporaryConversation method

Future<TemporaryConversation> createTemporaryConversation({
  1. required Set<String> members,
  2. int? timeToLive,
})

To create a new TemporaryConversation.

members is the Conversation.members. timeToLive is the TemporaryConversation.timeToLive.

Returns an instance of TemporaryConversation.

Implementation

Future<TemporaryConversation> createTemporaryConversation({
  required Set<String> members,
  int? timeToLive,
}) async {
  return await _createConversation(
    type: _ConversationType.temporary,
    members: members,
    ttl: timeToLive,
  );
}