Group stories show group avatar in story list viewer

This commit is contained in:
Josh Perez 2022-07-28 20:16:30 -04:00 committed by GitHub
parent e7b3de8b28
commit 0350692034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 25 deletions

View file

@ -15,6 +15,7 @@ import type {
StoryViewType,
} from '../types/Stories';
import type { LocalizerType } from '../types/Util';
import type { PreferredBadgeSelectorType } from '../state/selectors/badges';
import { ContextMenu } from './ContextMenu';
import { MyStoriesButton } from './MyStoriesButton';
import { SearchInput } from './SearchInput';
@ -59,6 +60,7 @@ function getNewestMyStory(story: MyStoryType): StoryViewType {
}
export type PropsType = {
getPreferredBadge: PreferredBadgeSelectorType;
hiddenStories: Array<ConversationStoryType>;
i18n: LocalizerType;
me: ConversationType;
@ -75,6 +77,7 @@ export type PropsType = {
};
export const StoriesPane = ({
getPreferredBadge,
hiddenStories,
i18n,
me,
@ -164,6 +167,7 @@ export const StoriesPane = ({
{renderedStories.map(story => (
<StoryListItem
conversationId={story.conversationId}
getPreferredBadge={getPreferredBadge}
group={story.group}
i18n={i18n}
key={story.storyView.timestamp}
@ -192,6 +196,7 @@ export const StoriesPane = ({
hiddenStories.map(story => (
<StoryListItem
conversationId={story.conversationId}
getPreferredBadge={getPreferredBadge}
key={story.storyView.timestamp}
i18n={i18n}
isHidden