feat: refine cast sender payload
This commit is contained in:
parent
bf69051440
commit
fba1c750c6
|
@ -15,6 +15,7 @@ import { VerticallyCentered } from '@ente/shared/components/Container';
|
||||||
import { logError } from '@ente/shared/sentry';
|
import { logError } from '@ente/shared/sentry';
|
||||||
import { LS_KEYS, getData } from '@ente/shared/storage/localStorage';
|
import { LS_KEYS, getData } from '@ente/shared/storage/localStorage';
|
||||||
import { Collection } from 'types/collection';
|
import { Collection } from 'types/collection';
|
||||||
|
import { SESSION_KEYS, getKey } from '@ente/shared/storage/sessionStorage';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
show: boolean;
|
show: boolean;
|
||||||
|
@ -73,9 +74,9 @@ export default function AlbumCastDialog(props: Props) {
|
||||||
|
|
||||||
// ok, they exist. let's give them the good stuff.
|
// ok, they exist. let's give them the good stuff.
|
||||||
const payload = JSON.stringify({
|
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,
|
targetCollectionId: props.currentCollection.id,
|
||||||
targetCollectionKey: props.currentCollection.key,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const encryptedPayload = await boxSeal(
|
const encryptedPayload = await boxSeal(
|
||||||
|
|
Loading…
Reference in a new issue