Skip to content

Commit

Permalink
fix: params on shinkai visor
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Nov 7, 2023
1 parent 50501a0 commit 039d7e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ export const CreateInbox = () => {
const [receiver, ...rest] = values.receiverIdentity.split('/');
createChat({
sender: auth.shinkai_identity,
senderSubidentity: `${auth.profile}/device/${auth.registration_name}`,
senderSubidentity: auth.profile,
receiver,
receiverSubidentity: rest.join('/'),
message: values.message,
my_device_encryption_sk: auth.my_device_encryption_sk,
my_device_identity_sk: auth.my_device_identity_sk,
node_encryption_pk: auth.node_encryption_pk,
profile_encryption_sk: auth.profile_encryption_sk,
profile_identity_sk: auth.profile_identity_sk,
});
};

Expand Down
2 changes: 1 addition & 1 deletion apps/shinkai-visor/src/components/inbox/inbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const Inbox = () => {
const receiver = extractReceiverShinkaiName(decodedInboxId, sender);
sendMessageToInbox({
sender: auth.shinkai_identity,
sender_subidentity: `${auth.profile}/device/${auth.registration_name}`,
sender_subidentity: auth.profile,
receiver,
message: value,
inboxId: decodedInboxId,
Expand Down

0 comments on commit 039d7e3

Please sign in to comment.