Keep story creator around until we've verified contacts and queued job

This commit is contained in:
Scott Nonnenberg 2022-11-01 17:36:16 -07:00 committed by GitHub
parent 4fc1b6388c
commit 9fba33943a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 178 additions and 41 deletions

View file

@ -21,6 +21,7 @@ import type {
SelectedStoryDataType,
StoryDataType,
StoriesStateType,
AddStoryData,
} from '../ducks/stories';
import { HasStories, MY_STORIES_ID } from '../../types/Stories';
import { ReadStatus } from '../../messages/MessageReadStatus';
@ -58,6 +59,11 @@ export const getSelectedStoryData = createSelector(
selectedStoryData
);
export const getAddStoryData = createSelector(
getStoriesState,
({ addStoryData }): AddStoryData => addStoryData
);
function getReactionUniqueId(reaction: MessageReactionType): string {
return `${reaction.fromId}:${reaction.targetAuthorUuid}:${reaction.timestamp}`;
}