MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / tryApplyOwnerProfile

Function tryApplyOwnerProfile

src/stores/session.ts:709–718  ·  view source on GitHub ↗

* 尝试用已保存的平台 owner profile 自动补全会话 owner(唯一匹配才写入)

(id: string)

Source from the content-addressed store, hash-verified

707 * 尝试用已保存的平台 owner profile 自动补全会话 owner(唯一匹配才写入)
708 */
709 async function tryApplyOwnerProfile(id: string) {
710 const result = await useDataService().tryApplyOwnerProfile(id)
711 if (result.applied && result.ownerId) {
712 const session = sessions.value.find((s) => s.id === id)
713 if (session) {
714 session.ownerId = result.ownerId
715 }
716 }
717 return result
718 }
719
720 /**
721 * 本会话不再提醒"选择我是谁"(仅抑制弹窗,不影响自动补全)

Callers 1

Calls 2

useDataServiceFunction · 0.90
tryApplyOwnerProfileMethod · 0.65

Tested by

no test coverage detected