Hide Jump to Read Receipt button for users who have not yet sent an RR
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
4f52afdb3c
commit
0bb26831ae
|
@ -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"}>
|
||||||
|
|
Loading…
Reference in New Issue