Fixes isHidden prop from not being present in StoryView
This commit is contained in:
parent
7126cbd5e4
commit
f7b2627991
3 changed files with 6 additions and 1 deletions
|
@ -765,7 +765,10 @@ export const StoryViewer = ({
|
||||||
<ConfirmationDialog
|
<ConfirmationDialog
|
||||||
actions={[
|
actions={[
|
||||||
{
|
{
|
||||||
action: () => onHideStory(id),
|
action: () => {
|
||||||
|
onHideStory(id);
|
||||||
|
onClose();
|
||||||
|
},
|
||||||
style: 'affirmative',
|
style: 'affirmative',
|
||||||
text: i18n('StoryListItem__hide-modal--confirm'),
|
text: i18n('StoryListItem__hide-modal--confirm'),
|
||||||
},
|
},
|
||||||
|
|
|
@ -153,6 +153,7 @@ export function getStoryView(
|
||||||
return {
|
return {
|
||||||
attachment,
|
attachment,
|
||||||
canReply: canReply(story, undefined, conversationSelector),
|
canReply: canReply(story, undefined, conversationSelector),
|
||||||
|
isHidden: Boolean(sender.hideStory),
|
||||||
isUnread: story.readStatus === ReadStatus.Unread,
|
isUnread: story.readStatus === ReadStatus.Unread,
|
||||||
messageId: story.messageId,
|
messageId: story.messageId,
|
||||||
sender,
|
sender,
|
||||||
|
|
|
@ -78,6 +78,7 @@ export type StoryViewType = {
|
||||||
| 'badges'
|
| 'badges'
|
||||||
| 'color'
|
| 'color'
|
||||||
| 'firstName'
|
| 'firstName'
|
||||||
|
| 'hideStory'
|
||||||
| 'id'
|
| 'id'
|
||||||
| 'isMe'
|
| 'isMe'
|
||||||
| 'name'
|
| 'name'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue