Skip to content

Commit

Permalink
Merge branch 'main' into feature/playground-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
swcurran committed May 15, 2023
2 parents 7b64900 + 76240b8 commit c8a220c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions aries_cloudagent/multitenant/route_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,17 @@ async def _route_for_key(
keylist_updates = await mediation_mgr.remove_key(
replace_key, keylist_updates
)

responder = self.root_profile.inject(BaseResponder)
# in order to locate the correct verkey for message packing we need
# to use the correct profile.
# if we are using default/base mediation then we need
# the root_profile to create the responder.
# if sub-wallets are configuring their own mediation, then
# we need the sub-wallet (profile) to create the responder.
responder = (
self.root_profile.inject(BaseResponder)
if base_mediation_record
else profile.inject(BaseResponder)
)
await responder.send(
keylist_updates, connection_id=mediation_record.connection_id
)
Expand Down

0 comments on commit c8a220c

Please sign in to comment.