mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-18 21:11:25 +02: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
@ -369,11 +369,14 @@ const UserOptionsSection: React.FC<{
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
readReceiptButton = (
|
const room = cli.getRoom(member.roomId);
|
||||||
<AccessibleButton onClick={onReadReceiptButton} className="mx_UserInfo_field">
|
if (room?.getEventReadUpTo(member.userId)) {
|
||||||
{ _t('Jump to read receipt') }
|
readReceiptButton = (
|
||||||
</AccessibleButton>
|
<AccessibleButton onClick={onReadReceiptButton} className="mx_UserInfo_field">
|
||||||
);
|
{ _t('Jump to read receipt') }
|
||||||
|
</AccessibleButton>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
insertPillButton = (
|
insertPillButton = (
|
||||||
<AccessibleButton onClick={onInsertPillButton} className={"mx_UserInfo_field"}>
|
<AccessibleButton onClick={onInsertPillButton} className={"mx_UserInfo_field"}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user