Browse SDKs · iOS
SDKsiOS

Create a forwarded message

Create a single-message forward with OpenIM iOS SDK.

Copy
OIMMessageInfo *message =
    [OIMMessageInfo createForwardMessage:sourceMessage];

The source must be a complete OIMMessageInfo that has already been sent successfully. The returned object has a new clientMsgID and does not modify the source message. Send it afterward to the target one-to-one or group chat.