First time My Stories post experience

This commit is contained in:
Josh Perez 2022-08-23 13:24:55 -04:00 committed by GitHub
parent c18fa35354
commit f611256afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 392 additions and 102 deletions

View file

@ -282,6 +282,8 @@ function hideMyStoriesFrom(
storageServiceUploadJob();
window.storage.put('hasSetMyStoriesPrivacy', true);
dispatch({
type: HIDE_MY_STORIES_FROM,
payload: memberUuids,
@ -378,6 +380,8 @@ function setMyStoriesToAllSignalConnections(): ThunkAction<
storageServiceUploadJob();
}
window.storage.put('hasSetMyStoriesPrivacy', true);
dispatch({
type: RESET_MY_STORIES,
});
@ -432,6 +436,10 @@ function updateStoryViewers(
storageServiceUploadJob();
if (listId === MY_STORIES_ID) {
window.storage.put('hasSetMyStoriesPrivacy', true);
}
dispatch({
type: VIEWERS_CHANGED,
payload: {
@ -599,7 +607,7 @@ export function reducer(
state.distributionLists,
MY_STORIES_ID,
() => ({
isBlockList: false,
isBlockList: true,
memberUuids: [],
})
);