Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
fix: remove their_role from invitations
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Dec 18, 2020
1 parent 775ba44 commit 0188a96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions acapy_plugin_toolbox/invitations.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
connection_mgr = ConnectionManager(context)
connection, invitation = await connection_mgr.create_invitation(
my_label=context.message.label,
their_role=context.message.role,
auto_accept=context.message.auto_accept,
multi_use=bool(context.message.multi_use),
public=False,
Expand All @@ -132,7 +131,6 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
id=connection.connection_id,
label=invitation.label,
alias=connection.alias,
role=connection.their_role,
auto_accept=connection.accept == ConnRecord.ACCEPT_AUTO,
multi_use=(
connection.invitation_mode ==
Expand Down Expand Up @@ -166,7 +164,6 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
{
'state': 'invitation',
# 'initiator': context.message.initiator,
# 'their_role': context.message.their_role
}.items()
))
session = await context.session()
Expand All @@ -184,7 +181,6 @@ async def handle(self, context: RequestContext, responder: BaseResponder):
'id': connection.connection_id,
'label': invitation.label,
'alias': connection.alias,
'role': connection.their_role,
'auto_accept': (
connection.accept == ConnRecord.ACCEPT_AUTO
),
Expand Down

0 comments on commit 0188a96

Please sign in to comment.