UI for when read receipts are turned off

This commit is contained in:
Josh Perez 2022-08-31 12:11:14 -04:00 committed by GitHub
parent 7632f31cf2
commit 39143015c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 135 additions and 33 deletions

View file

@ -14,6 +14,7 @@ import { getConversationSelector } from '../selectors/conversations';
import {
getEmojiSkinTone,
getHasAllStoriesMuted,
getHasReadReceiptSetting,
getPreferredReactionEmoji,
} from '../selectors/items';
import { getIntl } from '../selectors/user';
@ -76,6 +77,9 @@ export function SmartStoryViewer(): JSX.Element | null {
);
const hasActiveCall = useSelector(isInFullScreenCall);
const hasReadReceiptSetting = useSelector<StateType, boolean>(
getHasReadReceiptSetting
);
return (
<StoryViewer
@ -84,6 +88,7 @@ export function SmartStoryViewer(): JSX.Element | null {
group={conversationStory.group}
hasActiveCall={hasActiveCall}
hasAllStoriesMuted={hasAllStoriesMuted}
hasReadReceiptSetting={hasReadReceiptSetting}
i18n={i18n}
numStories={selectedStoryData.numStories}
onHideStory={toggleHideStories}