Auto-select a newly created distribution list or group when sending story

This commit is contained in:
Alvaro
2022-12-09 10:35:34 -07:00
committed by GitHub
parent 81e4564687
commit 2db14e8d6f
14 changed files with 94 additions and 26 deletions

View File

@@ -51,6 +51,7 @@ import { isGroup } from '../../util/whatTypeOfConversation';
import { isNotNil } from '../../util/isNotNil';
import { isStory } from '../../messages/helpers';
import { sendStoryMessage as doSendStoryMessage } from '../../util/sendStoryMessage';
import type { BoundActionCreatorsMapObject } from '../../hooks/useBoundActions';
import { useBoundActions } from '../../hooks/useBoundActions';
import { verifyStoryListMembers as doVerifyStoryListMembers } from '../../util/verifyStoryListMembers';
import { viewSyncJobQueue } from '../../jobs/viewSyncJobQueue';
@@ -1317,7 +1318,9 @@ export const actions = {
setStorySending,
};
export const useStoriesActions = (): typeof actions => useBoundActions(actions);
export const useStoriesActions = (): BoundActionCreatorsMapObject<
typeof actions
> => useBoundActions(actions);
// Reducer