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:
Michael Telatynski 2020-10-06 22:58:56 +01:00 committed by GitHub
commit 35c7ccfcbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"}>