mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Merge pull request #5282 from matrix-org/t3chguy/fix/15380
Hide Jump to Read Receipt button for users who have not yet sent an RR
This commit is contained in:
commit
35c7ccfcbd
1 changed files with 8 additions and 5 deletions
|
@ -369,11 +369,14 @@ const UserOptionsSection: React.FC<{
|
|||
});
|
||||
};
|
||||
|
||||
const room = cli.getRoom(member.roomId);
|
||||
if (room?.getEventReadUpTo(member.userId)) {
|
||||
readReceiptButton = (
|
||||
<AccessibleButton onClick={onReadReceiptButton} className="mx_UserInfo_field">
|
||||
{ _t('Jump to read receipt') }
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
||||
insertPillButton = (
|
||||
<AccessibleButton onClick={onInsertPillButton} className={"mx_UserInfo_field"}>
|
||||
|
|
Loading…
Reference in a new issue