Skip to content

Commit

Permalink
feat(user-profile): parameters in ConnectionProfileUpdated (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
genaris authored Sep 30, 2024
1 parent 02ee308 commit 56d393d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/user-profile/src/services/UserProfileEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ export interface ConnectionProfileUpdatedEvent extends BaseEvent {
payload: {
profile: UserProfileData
connection: ConnectionRecord
sendBackYoursRequested?: boolean
threadId?: string
parentThreadId?: string
}
}
3 changes: 3 additions & 0 deletions packages/user-profile/src/services/UserProfileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 56d393d

Please sign in to comment.