Browse SDKs · iOS
SDKsiOS

Create a reply message

Create a quoted reply with OpenIM iOS SDK.

Copy
OIMMessageInfo *message =
    [OIMMessageInfo createQuoteMessage:@"I agree with this proposal"
                                message:originalMessage];

The first argument is the new text body. The second is the complete original message returned by a list, history query, or event. Creating the reply neither modifies the original message nor sends the new one automatically.