- Android
- iOS
- JavaScript
- Flutter
- ReactNative
- HarmonyOS
Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.
Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.
To display draft state in a conversation list, you do not need to call this method. Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.
Parameters
| Name | Type | Required | Default | Description | Version |
|---|---|---|---|---|---|
| conversation | Object | Yes | None | Conversation object | 1.0.0 |
| conversation.conversationType | Number | Yes | None | Conversation type | 1.0.0 |
| conversation.conversationId | String | Yes | None | Conversation ID | 1.0.0 |
Code Example
let { ConversationType } = JIM;
let conversation = {
conversationType: ConversationType.PRIVATE,
conversationId: 'userId01'
};
jim.getDraft(conversation).then((draft) => {
console.log('get conversation draft successfully', draft);
});
Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.
Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.
Each conversation contains a draft property, which is returned when retrieving the conversation list. See the conversation object for details.