Edit distribution lists via story settings menu

This commit is contained in:
Josh Perez 2022-07-20 20:07:09 -04:00 committed by GitHub
parent 9986d10947
commit e321e1fea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 2403 additions and 102 deletions

View file

@ -4,7 +4,9 @@
import type { AttachmentType } from './Attachment';
import type { ContactNameColorType } from './Colors';
import type { ConversationType } from '../state/ducks/conversations';
import type { LocalizerType } from './Util';
import type { SendStatus } from '../messages/MessageSendState';
import type { StoryDistributionListDataType } from '../state/ducks/storyDistributionLists';
export type ReplyType = Pick<
ConversationType,
@ -110,3 +112,18 @@ export enum StoryViewModeType {
All = 'All',
Single = 'Single',
}
export type StoryDistributionListWithMembersDataType = Omit<
StoryDistributionListDataType,
'memberUuids'
> & {
members: Array<ConversationType>;
};
export function getStoryDistributionListName(
i18n: LocalizerType,
id: string,
name: string
): string {
return id === MY_STORIES_ID ? i18n('Stories__mine') : name;
}