Reactions: Go directly to all tab, show 'You' for current user

This commit is contained in:
Ken Powers 2020-03-03 17:33:54 -05:00 committed by GitHub
parent 4d6dafccfb
commit faa2b13026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 25 deletions

View file

@ -158,12 +158,16 @@ export const ReactionViewer = React.forwardRef<HTMLDivElement, Props>(
/>
</div>
<div className="module-reaction-viewer__body__row__name">
<ContactName
module="module-reaction-viewer__body__row__name__contact-name"
name={from.name}
profileName={from.profileName}
phoneNumber={from.phoneNumber}
/>
{from.isMe ? (
i18n('you')
) : (
<ContactName
module="module-reaction-viewer__body__row__name__contact-name"
name={from.name}
profileName={from.profileName}
phoneNumber={from.phoneNumber}
/>
)}
</div>
<div className="module-reaction-viewer__body__row__emoji">
<Emoji size={18} emoji={emoji} />