diff --git a/docs/porting/1.21.0/02-contract.md b/docs/porting/1.21.0/02-contract.md index 70f25e8..a7d63b4 100644 --- a/docs/porting/1.21.0/02-contract.md +++ b/docs/porting/1.21.0/02-contract.md @@ -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`** diff --git a/docs/porting/1.21.0/acceptance-report.md b/docs/porting/1.21.0/acceptance-report.md index d2b1bc0..7ba2a15 100644 --- a/docs/porting/1.21.0/acceptance-report.md +++ b/docs/porting/1.21.0/acceptance-report.md @@ -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 实证无引用) | diff --git a/src/common/ChatOptions.ts b/src/common/ChatOptions.ts index 23ff107..2ad22ee 100644 --- a/src/common/ChatOptions.ts +++ b/src/common/ChatOptions.ts @@ -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;