Fixes story viewing behavior

This commit is contained in:
Josh Perez 2022-07-06 15:06:20 -04:00 committed by GitHub
parent c4b6eebcd6
commit 3e644f45cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 960 additions and 939 deletions

View file

@ -13,6 +13,7 @@ import { SmartGlobalModalContainer } from './GlobalModalContainer';
import { SmartLeftPane } from './LeftPane';
import { SmartSafetyNumberViewer } from './SafetyNumberViewer';
import { SmartStories } from './Stories';
import { SmartStoryViewer } from './StoryViewer';
import type { StateType } from '../reducer';
import { getPreferredBadgeSelector } from '../selectors/badges';
import {
@ -23,7 +24,10 @@ import {
getIsMainWindowFullScreen,
getMenuOptions,
} from '../selectors/user';
import { shouldShowStoriesView } from '../selectors/stories';
import {
getSelectedStoryData,
shouldShowStoriesView,
} from '../selectors/stories';
import { getHideMenuBar } from '../selectors/items';
import { getConversationsStoppingSend } from '../selectors/conversations';
import { getIsCustomizingPreferredReactions } from '../selectors/preferredReactions';
@ -54,6 +58,8 @@ const mapStateToProps = (state: StateType) => {
),
isShowingStoriesView: shouldShowStoriesView(state),
renderStories: () => <SmartStories />,
selectedStoryData: getSelectedStoryData(state),
renderStoryViewer: () => <SmartStoryViewer />,
requestVerification: (
type: 'sms' | 'voice',
number: string,