You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Hide Jump to Read Receipt button for users who have not yet sent an RR
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -369,11 +369,14 @@ const UserOptionsSection: React.FC<{
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const room = cli.getRoom(member.roomId);
|
||||||
|
if (room && room.getEventReadUpTo(member.userId)) {
|
||||||
readReceiptButton = (
|
readReceiptButton = (
|
||||||
<AccessibleButton onClick={onReadReceiptButton} className="mx_UserInfo_field">
|
<AccessibleButton onClick={onReadReceiptButton} className="mx_UserInfo_field">
|
||||||
{ _t('Jump to read receipt') }
|
{ _t('Jump to read receipt') }
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
insertPillButton = (
|
insertPillButton = (
|
||||||
<AccessibleButton onClick={onInsertPillButton} className={"mx_UserInfo_field"}>
|
<AccessibleButton onClick={onInsertPillButton} className={"mx_UserInfo_field"}>
|
||||||
|
|||||||
Reference in New Issue
Block a user