MCPcopy Create free account
hub / github.com/experdot/pointer / toggleTopicCollapse

Function toggleTopicCollapse

src/renderer/src/services/messagesService.ts:268–276  ·  view source on GitHub ↗
(pageId: string, topicId: string)

Source from the content-addressed store, hash-verified

266 * 切换 Topic 折叠状态
267 */
268export 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 折叠状态

Callers

nothing calls this directly

Calls 2

getTopicsMethod · 0.80
updateTopicMethod · 0.80

Tested by

no test coverage detected