Skip to main content

setConversationDraft

Feature Introduction

Description

Set the conversation draft.

Note

Setting to empty will clear the draft.

Related Callback:
onConversationChanged

Function Prototype


- (void)setConversationDraft:(NSString *)conversationID
draftText:(NSString *)draftText
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeMandatoryDescription
conversationIDNSStringYesConversation ID
draftTextNSStringYesDraft content

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager setConversationDraft:@""
draftText:@""
onSuccess:^(NSString * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];