Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Tweak ReadReceiptGroup to better handle disambiguation #8402

Merged
merged 1 commit into from
Apr 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/components/views/rooms/ReadReceiptGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function ReadReceiptPerson({ userId, roomMember, ts, isTwelveHour, onAfterClick
label: (
<>
<div className="mx_Tooltip_title">
{ roomMember.name ?? userId }
{ roomMember.rawDisplayName ?? userId }
</div>
<div className="mx_Tooltip_sub">
{ userId }
Expand All @@ -212,15 +212,18 @@ function ReadReceiptPerson({ userId, roomMember, ts, isTwelveHour, onAfterClick
onMouseLeave={hideTooltip}
onFocus={showTooltip}
onBlur={hideTooltip}
onWheel={hideTooltip}>
onWheel={hideTooltip}
>
<MemberAvatar
member={roomMember}
fallbackUserId={userId}
width={24}
height={24}
aria-hidden="true"
aria-live="off"
resizeMethod="crop" />
resizeMethod="crop"
hideTitle
/>
<div className="mx_ReadReceiptGroup_name">
<p>{ roomMember.name }</p>
<p className="mx_ReadReceiptGroup_secondary">
Expand Down