From 56d393dcfc393e65c2ac69ba2b3797566b30ada7 Mon Sep 17 00:00:00 2001 From: Ariel Gentile Date: Mon, 30 Sep 2024 15:52:23 -0300 Subject: [PATCH] feat(user-profile): parameters in ConnectionProfileUpdated (#31) --- packages/user-profile/src/services/UserProfileEvents.ts | 3 +++ packages/user-profile/src/services/UserProfileService.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/user-profile/src/services/UserProfileEvents.ts b/packages/user-profile/src/services/UserProfileEvents.ts index 592beaf..23e6d78 100644 --- a/packages/user-profile/src/services/UserProfileEvents.ts +++ b/packages/user-profile/src/services/UserProfileEvents.ts @@ -32,5 +32,8 @@ export interface ConnectionProfileUpdatedEvent extends BaseEvent { payload: { profile: UserProfileData connection: ConnectionRecord + sendBackYoursRequested?: boolean + threadId?: string + parentThreadId?: string } } diff --git a/packages/user-profile/src/services/UserProfileService.ts b/packages/user-profile/src/services/UserProfileService.ts index 63dec78..81cdb25 100644 --- a/packages/user-profile/src/services/UserProfileService.ts +++ b/packages/user-profile/src/services/UserProfileService.ts @@ -130,6 +130,9 @@ export class UserProfileService { payload: { connection, profile: getConnectionProfile(connection) ?? {}, + sendBackYoursRequested: messageContext.message.sendBackYours, + threadId: messageContext.message.threadId, + parentThreadId: messageContext.message.thread?.parentThreadId, }, }) const config = messageContext.agentContext.dependencyManager.resolve(UserProfileModuleConfig)