Fix StoryViewer rendering "You"

This commit is contained in:
jamiebuilds-signal 2022-09-12 15:03:25 -07:00 committed by GitHub
parent 9bc4117259
commit 537955b009
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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