Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/porting/1.21.0/02-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
- 返回包装(双端一致):`{getConversationsFromDBWithCursor: {cursor: string, list: [...]}}`
- 无新事件。

### C2 新配置:`ChatOptions.enableChatroomConversation`(聊天室消息建会话)
### C2 新配置:`ChatOptions.enableChatroomConversation`(获取本地会话列表时是否包含聊天室会话)

- TS 字段 `enableChatroomConversation: boolean`,默认 `false`;5 处同步(声明/构造 params/构造赋值/withAppId params/withAppKey params)
- JSON key:**`enableChatroomConversation`**
Expand Down
2 changes: 1 addition & 1 deletion docs/porting/1.21.0/acceptance-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
| 变更项 | iOS 源 | Android 源 | TypeScript | Android Wrapper | iOS Wrapper | 状态 |
|---|---|---|---|---|---|---|
| `fetchConversationsFromDB`(本地会话分页加载) | `getConversationsFromDBWithCursor:pageSize:completion:` | `asyncGetConversationsFromDB(cursor, pageSize, callback)` | 已实现(`ChatManager.fetchConversationsFromDB`) | 已实现 | 已实现 | ✅ |
| `enableChatroomConversation`(聊天室消息建会话) | `EMOptions.enableChatroomConversation` | `set/isEnableChatroomConversation` | 已实现(默认 false) | 已实现 | 已实现 | ✅ |
| `enableChatroomConversation`(设置获取本地会话列表时是否包含聊天室会话) | `EMOptions.enableChatroomConversation` | `set/isEnableChatroomConversation` | 已实现(默认 false) | 已实现 | 已实现 | ✅ |
| `autoLoadConversations`(衍生新增,UM-2) | `EMOptions.autoLoadConversations`(4.24.1 已有) | `set/isAutoLoadAllConversations`(4.24.1 已有) | 已实现(默认 true,文档强调分页前须关闭及原因) | 已实现 | 已实现 | ✅(沿用 Flutter 评审结论) |
| ~~`useAgoraChatDomain`~~ | 裸 `BOOL` 无文档 | `Boolean` 三态 + `@hide` | **不移植**(KI-107 对内品牌开关) | 不移植 | 不移植 | ✅ 已闭环,grep 零残留 |
| `syncDataWSHost/Port`、`SyncDataWebSocketServer/Port` 移除 | 已删 | 已删 | 从未暴露,无操作 | - | - | ✅ skip(全仓 grep 实证无引用) |
Expand Down
6 changes: 3 additions & 3 deletions src/common/ChatOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,10 @@ export class ChatOptions {
enableAutoSyncContacts: boolean;

/**
* Whether to create conversations for chat room messages.
* Whether to include chatroom conversations in the local conversation list.
*
* - `true`: Yes. A conversation is created when a chat room message is sent or received.
* - (Default) `false`: No.
* - `true`: Yes. Includes chatroom conversations.
* - (Default) `false`: No. Excludes chatroom conversations.
*/
enableChatroomConversation: boolean;

Expand Down
Loading