Pass showReadReceipts from MessagePanel

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-04-14 12:24:33 +02:00
parent ba0384f381
commit 43c236e8a5
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
2 changed files with 5 additions and 1 deletions

View File

@ -659,6 +659,7 @@ export default class MessagePanel extends React.Component {
showReactions={this.props.showReactions}
layout={this.props.layout}
enableFlair={this.props.enableFlair}
showReadReceipts={this.props.showReadReceipts}
/>
</TileErrorBoundary>
</li>,

View File

@ -260,6 +260,9 @@ export default class EventTile extends React.Component {
// whether or not to show flair at all
enableFlair: PropTypes.bool,
// whether or not to show read receipts
showReadReceipts: PropTypes.bool,
};
static defaultProps = {
@ -989,7 +992,7 @@ export default class EventTile extends React.Component {
const ircPadlock = useIRCLayout && !isBubbleMessage && this._renderE2EPadlock();
let msgOption;
if (SettingsStore.getValue("showReadReceipts")) {
if (this.props.showReadReceipts) {
msgOption = (
<div className="mx_EventTile_msgOption">
{ readAvatars }