Sending/Failed state for stories
This commit is contained in:
parent
9bad2301fd
commit
220963c789
22 changed files with 676 additions and 190 deletions
|
@ -9,11 +9,7 @@ import type {
|
|||
ConversationType,
|
||||
ShowConversationType,
|
||||
} from '../state/ducks/conversations';
|
||||
import type {
|
||||
ConversationStoryType,
|
||||
MyStoryType,
|
||||
StoryViewType,
|
||||
} from '../types/Stories';
|
||||
import type { ConversationStoryType, MyStoryType } from '../types/Stories';
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
import type { PreferredBadgeSelectorType } from '../state/selectors/badges';
|
||||
import type { ShowToastActionCreatorType } from '../state/ducks/toast';
|
||||
|
@ -59,10 +55,6 @@ function search(
|
|||
.map(result => result.item);
|
||||
}
|
||||
|
||||
function getNewestMyStory(story: MyStoryType): StoryViewType {
|
||||
return story.stories[0];
|
||||
}
|
||||
|
||||
export type PropsType = {
|
||||
getPreferredBadge: PreferredBadgeSelectorType;
|
||||
hiddenStories: Array<ConversationStoryType>;
|
||||
|
@ -161,14 +153,9 @@ export const StoriesPane = ({
|
|||
<div className="Stories__pane__list">
|
||||
<>
|
||||
<MyStoryButton
|
||||
hasMultiple={
|
||||
myStories.length ? myStories[0].stories.length > 1 : false
|
||||
}
|
||||
i18n={i18n}
|
||||
me={me}
|
||||
newestStory={
|
||||
myStories.length ? getNewestMyStory(myStories[0]) : undefined
|
||||
}
|
||||
myStories={myStories}
|
||||
onAddStory={onAddStory}
|
||||
onClick={onMyStoriesClicked}
|
||||
queueStoryDownload={queueStoryDownload}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue