Fix StoryViewer rendering "You"
This commit is contained in:
parent
9bc4117259
commit
537955b009
1 changed files with 8 additions and 5 deletions
|
@ -499,6 +499,7 @@ export const StoryViewer = ({
|
||||||
<StoryImage
|
<StoryImage
|
||||||
attachment={attachment}
|
attachment={attachment}
|
||||||
firstName={firstName || title}
|
firstName={firstName || title}
|
||||||
|
isMe={isMe}
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
isPaused={shouldPauseViewing}
|
isPaused={shouldPauseViewing}
|
||||||
isMuted={isStoryMuted}
|
isMuted={isStoryMuted}
|
||||||
|
@ -584,11 +585,13 @@ export const StoryViewer = ({
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className="StoryViewer__meta--title">
|
<div className="StoryViewer__meta--title">
|
||||||
{group
|
{(group &&
|
||||||
? i18n('Stories__from-to-group', {
|
i18n('Stories__from-to-group', {
|
||||||
name: title,
|
name: isMe ? i18n('you') : title,
|
||||||
group: group.title,
|
group: group.title,
|
||||||
})
|
})) ||
|
||||||
|
isMe
|
||||||
|
? i18n('you')
|
||||||
: title}
|
: title}
|
||||||
</div>
|
</div>
|
||||||
<MessageTimestamp
|
<MessageTimestamp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue