Edit distribution lists via story settings menu
This commit is contained in:
parent
9986d10947
commit
e321e1fea8
42 changed files with 2403 additions and 102 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue