From 1d401c589dc72e443bf33aa85fdcd3c01cde9430 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Wed, 29 Oct 2025 21:37:38 -0700 Subject: [PATCH] add utils file --- apps/sim/tools/microsoft_teams/utils.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/apps/sim/tools/microsoft_teams/utils.ts b/apps/sim/tools/microsoft_teams/utils.ts index e8b03d8a53..f7b5ebc1f9 100644 --- a/apps/sim/tools/microsoft_teams/utils.ts +++ b/apps/sim/tools/microsoft_teams/utils.ts @@ -21,9 +21,11 @@ export interface TeamsMention { mentionText: string mentioned: | { - id: string - name: string - userIdentityType?: string + user: { + id: string + displayName: string + userIdentityType?: string + } } | { application: { @@ -248,9 +250,11 @@ export async function resolveMentionsForChat( id: mention.mentionId, mentionText: mention.name, mentioned: { - id: member.id, - name: member.displayName, - userIdentityType: member.userIdentityType, + user: { + id: member.id, + displayName: member.displayName, + userIdentityType: member.userIdentityType || 'aadUser', + }, }, }) } @@ -313,9 +317,11 @@ export async function resolveMentionsForChannel( id: mention.mentionId, mentionText: mention.name, mentioned: { - id: member.id, - name: member.displayName, - userIdentityType: member.userIdentityType, + user: { + id: member.id, + displayName: member.displayName, + userIdentityType: member.userIdentityType || 'aadUser', + }, }, }) }