From fba1c750c6ef8961b644d1c1366046470354e1b5 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Fri, 5 Jan 2024 23:38:26 -0500 Subject: [PATCH] feat: refine cast sender payload --- .../Collections/CollectionOptions/AlbumCastDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx b/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx index fcd71c886..e4ec9d552 100644 --- a/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx +++ b/apps/photos/src/components/Collections/CollectionOptions/AlbumCastDialog.tsx @@ -15,6 +15,7 @@ import { VerticallyCentered } from '@ente/shared/components/Container'; import { logError } from '@ente/shared/sentry'; import { LS_KEYS, getData } from '@ente/shared/storage/localStorage'; import { Collection } from 'types/collection'; +import { SESSION_KEYS, getKey } from '@ente/shared/storage/sessionStorage'; interface Props { show: boolean; @@ -73,9 +74,9 @@ export default function AlbumCastDialog(props: Props) { // ok, they exist. let's give them the good stuff. const payload = JSON.stringify({ - user: getData(LS_KEYS.USER), + user: JSON.stringify(getData(LS_KEYS.USER)), + sessionKey: getKey(SESSION_KEYS.ENCRYPTION_KEY), targetCollectionId: props.currentCollection.id, - targetCollectionKey: props.currentCollection.key, }); const encryptedPayload = await boxSeal(