* 尝试用已保存的平台 owner profile 自动补全会话 owner(唯一匹配才写入)
(id: string)
| 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 | * 本会话不再提醒"选择我是谁"(仅抑制弹窗,不影响自动补全) |
no test coverage detected