@@ -379,11 +438,11 @@ export const StoryViewer = ({
}
)}
onClick={() =>
- viewStory(
- story.messageId,
+ viewStory({
+ storyId: story.messageId,
storyViewMode,
- StoryViewDirectionType.Previous
- )
+ viewDirection: StoryViewDirectionType.Previous,
+ })
}
onMouseMove={() => setArrowToShow(Arrow.Left)}
type="button"
@@ -519,15 +578,14 @@ export const StoryViewer = ({
onClick={toggleHasAllStoriesMuted}
type="button"
/>
- {shouldShowContextMenu && (
-
@@ -555,14 +613,14 @@ export const StoryViewer = ({
{canReply && (
- {
- if (isHidden) {
- onHideStory(id);
- } else {
- setHasConfirmHideStory(true);
- }
- },
- },
- {
- icon: 'StoryListItem__icon--chat',
- label: i18n('StoryListItem__go-to-chat'),
- onClick: () => {
- onGoToConversation(id);
- },
- },
- ]}
- onClose={() => setIsShowingContextMenu(false)}
- referenceElement={referenceElement}
- theme={Theme.Dark}
- />
- {hasReplyModal && canReply && (
+ {hasStoryDetailsModal && (
+ setHasStoryDetailsModal(false)}
+ sender={story.sender}
+ sendState={sendState}
+ size={attachment?.size}
+ timestamp={timestamp}
+ />
+ )}
+ {hasStoryViewsNRepliesModal && (
setHasReplyModal(false)}
+ onClose={() => setHasStoryViewsNRepliesModal(false)}
onReact={emoji => {
onReactToStory(emoji, story);
- setHasReplyModal(false);
+ setHasStoryViewsNRepliesModal(false);
setReactionEmoji(emoji);
showToast(ToastType.StoryReact);
}}
onReply={(message, mentions, replyTimestamp) => {
if (!isGroupStory) {
- setHasReplyModal(false);
+ setHasStoryViewsNRepliesModal(false);
}
onReplyToStory(message, mentions, replyTimestamp, story);
showToast(ToastType.StoryReply);
@@ -712,6 +754,21 @@ export const StoryViewer = ({
{i18n('StoryListItem__hide-modal--body', [String(firstName)])}