Show story rings around avatars in send story modal

This commit is contained in:
Josh Perez 2023-03-07 21:15:25 -05:00 committed by GitHub
parent 78e3120d1a
commit d2322de4a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 71 additions and 45 deletions

View file

@ -8,6 +8,7 @@ import { SearchInput } from './SearchInput';
import { filterAndSortConversationsByRecent } from '../util/filterAndSortConversations';
import type { ConversationType } from '../state/ducks/conversations';
import type { ConversationWithStoriesType } from '../state/selectors/conversations';
import type { LocalizerType } from '../types/Util';
import type { PreferredBadgeSelectorType } from '../state/selectors/badges';
import type { PropsType as StoriesSettingsModalPropsType } from './StoriesSettingsModal';
@ -46,7 +47,7 @@ export type PropsType = {
distributionLists: Array<StoryDistributionListWithMembersDataType>;
getPreferredBadge: PreferredBadgeSelectorType;
groupConversations: Array<ConversationType>;
groupStories: Array<ConversationType>;
groupStories: Array<ConversationWithStoriesType>;
hasFirstStoryPostExperience: boolean;
ourConversationId: string | undefined;
i18n: LocalizerType;
@ -712,6 +713,7 @@ export function SendStoryModal({
isMe
sharedGroupNames={me.sharedGroupNames}
size={AvatarSize.THIRTY_TWO}
storyRing={undefined}
title={me.title}
/>
) : (
@ -759,7 +761,7 @@ export function SendStoryModal({
);
};
const renderGroup = (group: ConversationType) => {
const renderGroup = (group: ConversationWithStoriesType) => {
return (
<Checkbox
checked={selectedGroupIds.has(group.id)}
@ -826,6 +828,7 @@ export function SendStoryModal({
isMe={false}
sharedGroupNames={[]}
size={AvatarSize.THIRTY_TWO}
storyRing={group.hasStories}
title={group.title}
/>