(pageId: string, topicId: string)
| 266 | * 切换 Topic 折叠状态 |
| 267 | */ |
| 268 | export async function toggleTopicCollapse(pageId: string, topicId: string): Promise<void> { |
| 269 | const topics = stores.message.getTopics(pageId) |
| 270 | const topic = topics.find((t) => t.id === topicId) |
| 271 | if (topic) { |
| 272 | await stores.message.updateTopic(pageId, topicId, { |
| 273 | collapsed: !topic.collapsed |
| 274 | }) |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * 设置 Topic 折叠状态 |
nothing calls this directly
no test coverage detected