Skip to content

Commit

Permalink
fix: move split to last possible moment
Browse files Browse the repository at this point in the history
Signed-off-by: Colton Wolkins (Indicio work address) <colton@indicio.tech>
  • Loading branch information
TheTechmage committed Jun 11, 2024
1 parent bc5fde9 commit b7073bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aries_cloudagent/transport/v2_pack_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ async def parse_message(
message_dict = message_unpack.message

if message_unpack.sender_kid:
receipt.sender_verkey = message_unpack.sender_kid.split("#")[0]
receipt.recipient_verkey = message_unpack.recipient_kid.split("#")[0]
receipt.sender_verkey = message_unpack.sender_kid
receipt.recipient_verkey = message_unpack.recipient_kid

thid = message_dict.get("thid")
receipt.thread_id = thid or message_dict.get("id")
Expand Down Expand Up @@ -119,8 +119,8 @@ async def encode_message(
if sender_key and recipient_keys:
message = await messaging.pack(
message=message_json,
to=recipient_keys[0],
frm=sender_key,
to=recipient_keys[0].split("#")[0],
frm=sender_key.split("#")[0],
)
message = message.message
else:
Expand Down

0 comments on commit b7073bb

Please sign in to comment.