forwardMessages

open fun forwardMessages(    @NonNull context: Context,     @NonNull messageIdList: List<String>,     @NonNull recipients: Array<String>,     conversationType: Int,     @Nullable conversationName: String,     @Nullable completion: CompletionCallback)

Call this method to forward messages to anther users and/or groups.

This method create a new conversation if not already exists based on the users, groups and the conversationType parameters...

If the message is going to be send to a single recipient (users = 1), the parameter conversationName is useless (it can be null ), the message will be created in a OneToOne conversation if it is already exist otherwise a new conversation will be created.

In case of One To Many conversation, the parameter conversationName will be ignored

An event IConversationObservable will be delegated when the message is successfully sent or failed.

See also

Parameters

context

The application context

messageIdList

Message Id list to forward

recipients

The list of international phone numbers and/or list of groups that you want to forward messages (example of users format: [group:1,group:2,1234567891,1234567892,1234567893])

conversationType

Conversation type

conversationName

Conversation name in case of conversationType is THREAD_TYPE_GROUP type

completion

This callback will be invoked to handle operation result :

  • Success : The message is successfully added to the sending queue.
  • Error : a local error occurred when trying to forward messages

open fun forwardMessages(    @NonNull context: Context,     @NonNull conversationId: String,     @NonNull messageIdList: List<String>,     @Nullable completion: CompletionCallback)

Call this method to forward messages to another existing conversation.

This method does not create a new conversation if not exist.

This method does not allow :

  • an empty message Id list
  • a none existing conversation
An event IConversationObservable will be delegated when the message is successfully sent or failed.

See also

Parameters

context

The application context

conversationId

Conversation Id.

messageIdList

Message Id list to forward

completion

This callback will be invoked to handle operation result :

  • Success : The messages is successfully added to the sending queue.
  • Error : a local error occurred when trying to forward messages