Skip to content

Commit

Permalink
Merge pull request #1104 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify Send and Receive Message Module
  • Loading branch information
haoxiuwen authored Dec 22, 2024
2 parents 6ad130b + b5f84b0 commit b9c88ef
Show file tree
Hide file tree
Showing 35 changed files with 1,006 additions and 1,615 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ projects:
link: /document/ios/message_forward.html
- icon: /sdk/web.svg
text: Web
link: /document/web/message_send_receive.html#发送合并消息
link: /document/web/message_send_receive.html#发送和接收合并消息
- icon: /sdk/applet.svg
text: 小程序
link: /document/applet/message_send_receive.html#发送合并消息
link: /document/applet/message_send_receive.html#发送和接收合并消息
- icon: /sdk/harmonyos.svg
text: HarmonyOS
link: /document/harmonyos/message_forward.html
Expand Down
303 changes: 102 additions & 201 deletions docs/document/android/message_send_receive.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/document/android/releasenote.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@

- [IM SDK] 新增 [EMChatManager#asyncDeleteAllMsgsAndConversations](message_delete.html#清空聊天记录)方法,用于清空当前用户的聊天记录,包括消息和会话,同时可以选择是否清除服务端的聊天记录。
- [IM SDK] 新增 [EMChatManager#searchMsgFromDB(java.lang.String, long, int, java.lang.String, com.hyphenate.chat.EMConversation.EMSearchDirection, com.hyphenate.chat.EMConversation.EMMessageSearchScope)](message_search.html#根据搜索范围搜索所有会话中的消息)[EMConversation#searchMsgFromDB(java.lang.String, long, int, java.lang.String, com.hyphenate.chat.EMConversation.EMSearchDirection, com.hyphenate.chat.EMConversation.EMMessageSearchScope)](message_search.html#根据搜索范围搜索当前会话中的消息),可以在根据关键字搜索消息时,选择搜索范围,如只搜索消息内容、只搜索消息扩展信息以及同时搜索消息内容以及扩展信息。
- [IM SDK] 新增 [EMOptions#setUseReplacedMessageContents](message_send_receive.html#发送文本消息) 开关。开启后,发送消息时如果被内容审核进行了内容替换,发送方可以获取替换后的内容。
- [IM SDK] 新增 [EMOptions#setIncludeSendMessageInMessageListener](message_send_receive.html#接收消息) 开关。开启后,在 `EMMessageListener#onMessageReceived` 回调里增加发送成功的消息。
- [IM SDK] 新增 [EMOptions#setUseReplacedMessageContents](message_send_receive.html#发送和接收文本消息) 开关。开启后,发送消息时如果被内容审核进行了内容替换,发送方可以获取替换后的内容。
- [IM SDK] 新增 [EMOptions#setIncludeSendMessageInMessageListener](message_send_receive.html#发送和接收文本消息) 开关。开启后,在 `EMMessageListener#onMessageReceived` 回调里增加发送成功的消息。
- [IM SDK] 新增 [EMOptions#setRegardImportedMsgAsRead](message_retrieve.html#从服务器获取指定会话的消息) 开关。开启后,[利用服务端接口](/document/server-side/message_import.html)导入的消息,客户端上通过[漫游拉取](message_retrieve.html#从服务器获取指定会话的消息)到后,这些消息为已读状态,会话中未读取的消息数量,即 `EMConversation#getUnreadMsgCount` 的返回值不发生变化。若该开关为关闭状态,`EMConversation#getUnreadMsgCount` 的返回值会增加。

### 优化
Expand Down Expand Up @@ -468,7 +468,7 @@

### 新增特性

- [IM SDK] 新增[聊天室消息优先级](message_send_receive.html)
- [IM SDK] 新增[聊天室消息优先级](message_send_receive.html#设置聊天室消息优先级)
- [IM SDK] 群组信息更新后的 `EMGroupChangeListener#onSpecificationChanged` 回调中添加更新后的群组信息。

### 优化
Expand Down
4 changes: 2 additions & 2 deletions docs/document/android/thread_message.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

### 发送子区消息

发送子区消息和发送群组消息的方法基本一致,详情请参考 [发送消息](message_send_receive.html#发送文本消息)。唯一不同的是,发送子区消息需要指定标记 `isChatThreadMessage``true`
发送子区消息和发送群组消息的方法基本一致,详情请参考 [发送消息](message_send_receive.html#发送和接收文本消息)。唯一不同的是,发送子区消息需要指定标记 `isChatThreadMessage``true`

示例代码如下:

Expand Down Expand Up @@ -71,7 +71,7 @@ EMClient.getInstance().chatManager().sendMessage(message);

### 接收子区消息

接收消息的具体逻辑,请参考 [接收消息](message_send_receive.html#接收消息),此处只介绍子区消息和其他消息的区别。
接收消息的具体逻辑,请参考 [接收消息](message_send_receive.html#发送和接收文本消息),此处只介绍子区消息和其他消息的区别。

子区有新增消息时,子区所属群组的所有成员收到 `EMChatThreadChangeListener#onChatThreadUpdated` 回调,子区成员收到 `EMMessageListener#onMessageReceived` 回调。

Expand Down
Loading

0 comments on commit b9c88ef

Please sign in to comment.