Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxiuwen committed Oct 12, 2024
1 parent cf58440 commit f39d1b3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ List<ChatMessage> messages = conversation.searchMsgFromDB(keywords, timeStamp, m

### Import messages

Call `importMessages` to import multiple messages to the specified conversation. This applies to scenarios where chat users want to formard messages from another conversation.
Call `importMessages` to import multiple messages to the specified conversation.

```java
ChatClient.getInstance().chatManager().importMessages(msgs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ AgoraChatConversation *conversation = [[AgoraChatClient sharedClient].chatManage
You can delete conversations on both the local device and the server.
To delete them on the local device, call `deleteConversation` and `removeMessage`:
To delete them on the local device, call `deleteConversation` and `deleteMessageWithId`:
```objective-c
// Deletes the specified conversation. To keep the historical messages, set isDeleteMessages as NO.
[[AgoraChatClient sharedClient].chatManager deleteConversation:conversationId isDeleteMessages:YES completion:nil];
// Deletes the specified conversation.
// Deletes the specified conversations.
NSArray *conversations = @{@"conversationID1",@"conversationID2"};
[[AgoraChatClient sharedClient].chatManager deleteConversations:conversations isDeleteMessages:YES completion:nil];
// Deletes the specified message of the current conversation.
Expand Down Expand Up @@ -142,7 +142,7 @@ NSArray<AgoraChatMessage *> *messages = [conversation loadMessagesWithKeyword:ke
### Import messages
Call `importMessages` to import multiple messages to the specified conversation. This applies to scenarios where chat users want to formard messages from another conversation.
Call `importMessages` to import multiple messages to the specified conversation.
```objective-c
[[AgoraChatClient sharedClient].chatManager importMessages:messages completion:nil];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ChatClient.getInstance()

### Delete conversations and historical messages

The SDK provides two methods, which enables you to delete the conversations and historical messages on the local device and on the server respectively.
The SDK provides two methods, which enable you to delete the conversations and historical messages on the local device and on the server respectively.

To delete them on the local device, call `deleteConversation`:

Expand Down Expand Up @@ -244,7 +244,7 @@ ChatClient.getInstance().chatManager.searchMsgFromDB(

### Import messages

Call `importMessages` to import multiple messages to the specified conversation. This applies to scenarios where chat users want to formard messages from another conversation.
Call `importMessages` to import multiple messages to the specified conversation.

```typescript
// Construct the messages.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ List<Message> list = SDKClient.Instance.ChatManager.SearchMsgFromDB(keywords, ti

### Import messages

Call `ImportMessages` to import multiple messages to the specified conversation. This applies to scenarios where chat users want to formard messages from another conversation.
Call `ImportMessages` to import multiple messages to the specified conversation.

```C#
SDKClient.Instance.ChatManager.ImportMessages(messages, new CallBack(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ cmdMsg.addBody(cmdBody);
ChatClient.getInstance().chatManager().sendMessage(cmdMsg);
```

To notify the recipient that a CMD message is received, use a separate delegate so that users can deal with the message differently.
To notify the recipient that a CMD message is received, use a separate listener so that users can deal with the message differently.

```java
MessageListener msgListener = new MessageListener()
Expand Down

0 comments on commit f39d1b3

Please sign in to comment.