Skip to content

Commit

Permalink
feat: optional routing for legacy connectionless invitation (#1271)
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ezesinachi <[email protected]>
  • Loading branch information
jimezesinachi authored Feb 6, 2023
1 parent 3a4c5ec commit 7f65ba9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/modules/oob/OutOfBandApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ export class OutOfBandApi {
recordId: string
message: Message
domain: string
routing?: Routing
}): Promise<{ message: Message; invitationUrl: string }> {
// Create keys (and optionally register them at the mediator)
const routing = await this.routingService.getRouting(this.agentContext)
const routing = config.routing ?? (await this.routingService.getRouting(this.agentContext))

// Set the service on the message
config.message.service = new ServiceDecorator({
Expand Down

0 comments on commit 7f65ba9

Please sign in to comment.