Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicarq committed Nov 7, 2023
1 parent 60189ee commit ab2c6dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/shinkai-app/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const MessageButton = ({ inbox }: { inbox: SmartInbox }) => {
console.log('data', data);
await updateInboxName({
sender: auth?.shinkai_identity ?? '',
senderSubidentity: `${auth?.profile}/device/${auth?.registration_name}`,
senderSubidentity: auth?.profile,
receiver: auth.shinkai_identity,
receiverSubidentity: '',
my_device_encryption_sk: auth.my_device_encryption_sk,
Expand Down
8 changes: 4 additions & 4 deletions libs/shinkai-message-ts/src/api/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ export const updateInboxName = async (
try {
const messageString =
ShinkaiMessageBuilderWrapper.update_shinkai_inbox_name(
setupDetailsState.my_device_encryption_sk,
setupDetailsState.my_device_identity_sk,
setupDetailsState.profile_encryption_sk,
setupDetailsState.profile_identity_sk,
setupDetailsState.node_encryption_pk,
sender + '/' + sender_subidentity,
"",
sender,
sender_subidentity,
receiver,
"",
inboxId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ export class ShinkaiMessageBuilderWrapper {
);
builder.external_metadata_with_intra(receiver, sender, sender_subidentity);
// TODO: fix encryption
builder.body_encryption('None');
builder.body_encryption('DiffieHellmanChaChaPoly1305');

const message = builder.build_to_string();

Expand Down

0 comments on commit ab2c6dd

Please sign in to comment.