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

Commit d9f71d9

Browse files
committed
Add comment explaining why we're using this fallback for read receipt members
1 parent c03a76e commit d9f71d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/views/rooms/ReadReceiptGroup.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ function ReadReceiptPerson({ userId, roomMember, ts, isTwelveHour, onAfterClick
204204
onClick={() => {
205205
dis.dispatch({
206206
action: Action.ViewUser,
207+
// XXX: We should be using a real member object and not assuming what the receiver wants.
208+
// The ViewUser action leads to the RightPanelStore, and RightPanelStoreIPanelState defines the
209+
// member property of IRightPanelCardState as `RoomMember | User`, so we’re fine for now, but we
210+
// should definitely clean this up later
207211
member: roomMember ?? { userId } as User,
208212
push: false,
209213
});

0 commit comments

Comments
 (0)