Skip to content

Commit

Permalink
Merge pull request #1151 from haoxiuwen/doc-v2
Browse files Browse the repository at this point in the history
Modify Image Format and isUnread for Android and Harmony
  • Loading branch information
haoxiuwen authored Feb 20, 2025
2 parents 367b4c6 + 061db5e commit bedb200
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/document/android/message_receipt.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ options.setRequireAck(true);
与单聊消息的 app 层级设置已读回执功能不同,群聊消息是在发送消息时设置指定消息是否需要已读回执。

```java
EMMessage message = EMMessage.createTxtSendMessage(content, to);
EMMessage message = EMMessage.createTextSendMessage(content, to);
message.setIsNeedGroupAck(true);
```

Expand Down Expand Up @@ -272,14 +272,14 @@ public void asyncFetchGroupReadAcks(

| 字段 | 描述 |
| :--------- | :----- |
| `EMMessage#isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `true`|
| `EMMessage#isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `false`,表示该消息已读|
| `EMMessage#isAcked` | 是否(消息接收方)已发送或(消息发送方)已收到消息已读回执。如果是自己发送的消息,记录的是对方是否已读。如果是对方的消息,则记录的是自己是否发送过已读回执。 |

对于群聊消息,本地数据库通过以下字段存储消息已读状态:

| 字段 | 描述 |
| :--------- | :----- |
| `EMMessage#isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `true`|
| `EMMessage#isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `false`,表示该消息已读|
| `EMMessage#groupAckCount` | 已阅读消息的群成员数量。 |

### 已读回执与未读消息数
Expand Down
2 changes: 1 addition & 1 deletion docs/document/android/multi_device.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ List<String> ids = EMClient.getInstance().contactManager().getSelfIdsOnOtherPlat
// 选择一个登录 ID 作为消息接收方。
String toChatUsername = ids.get(0);
// 创建一条文本消息,content 为消息文字内容,toChatUsername 传入登录 ID 作为消息接收方。
EMMessage message = EMMessage.createTxtSendMessage(content, toChatUsername);
EMMessage message = EMMessage.createTextSendMessage(content, toChatUsername);
// 发送消息。
EMClient.getInstance().chatManager().sendMessage(message);
```
Expand Down
4 changes: 2 additions & 2 deletions docs/document/harmonyos/message_receipt.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ ChatClient.getInstance().chatManager()?.fetchGroupReadAcks(messageId, pageSize,

| 字段 | 描述 |
| :--------- | :----- |
| `ChatMessage.isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `true`|
| `ChatMessage.isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `false`,表示该消息已读|
| `ChatMessage.isReceiverRead` | 是否(消息接收方)已发送或(消息发送方)已收到消息已读回执。如果是自己发送的消息,记录的是对方是否已读。如果是对方的消息,则记录的是自己是否发送过已读回执。 |

对于群聊消息,本地数据库通过以下字段存储消息已读状态:

| 字段 | 描述 |
| :--------- | :----- |
| `ChatMessage.isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `true`|
| `ChatMessage.isUnread` | 用户是否已读了该消息。如果是自己发送的消息,该字段的值固定为 `false`,表示该消息已读|
| `ChatMessage.groupAckCount` | 已阅读消息的群成员数量。 |

### 已读回执与未读消息数
Expand Down
2 changes: 1 addition & 1 deletion docs/uikit/chatuikit/android/ui_historic.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public boolean onMenuItemClick(MenuItem item, int position) {

聊天窗口包括标题栏(不包含在 UIKitChatFragment 中),聊天区,输入区及扩展展示区,如下图所示:

![img](/images/android/easeim4.png)
![img](/images/android/easeim4.jpeg)

标题区 ChatUIKitTitleBar 的具体布局及实现不在 EaseIMKit 库的聊天控件及 fragment 中,需要你自己去实现。
开发者可以在 UIKitChatFragment 中获取到 ChatUIKitLayout 这个控件,然后通过这个控件进一步获取到获取其他控件,代码如下:
Expand Down

0 comments on commit bedb200

Please sign in to comment.