File tree Expand file tree Collapse file tree
aries_cloudagent/protocols/out_of_band/v1_0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,10 +133,10 @@ async def create_invitation(
133133 "Cannot store metadata without handshake protocols"
134134 )
135135 if public :
136- if multi_use :
137- raise OutOfBandManagerError (
138- "Cannot create public invitation with multi_use"
139- )
136+ # if multi_use:
137+ # raise OutOfBandManagerError(
138+ # "Cannot create public invitation with multi_use"
139+ # )
140140 if metadata :
141141 raise OutOfBandManagerError (
142142 "Cannot store metadata on public invitations"
@@ -235,9 +235,15 @@ async def create_invitation(
235235
236236 # Only create connection record if hanshake_protocols is defined
237237 if handshake_protocols :
238+ invitation_mode = (
239+ ConnRecord .INVITATION_MODE_MULTI
240+ if multi_use
241+ else ConnRecord .INVITATION_MODE_ONCE
242+ )
238243 conn_rec = ConnRecord ( # create connection record
239244 invitation_key = public_did .verkey ,
240245 invitation_msg_id = invi_msg ._id ,
246+ invitation_mode = invitation_mode ,
241247 their_role = ConnRecord .Role .REQUESTER .rfc23 ,
242248 state = ConnRecord .State .INVITATION .rfc23 ,
243249 accept = ConnRecord .ACCEPT_AUTO
You can’t perform that action at this time.
0 commit comments