mirror of https://github.com/vector-im/riot-web
Merge pull request #5282 from matrix-org/t3chguy/fix/15380
Hide Jump to Read Receipt button for users who have not yet sent an RRpull/21833/head
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…
Reference in New Issue