Pass showReadReceipts from MessagePanel
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
ba0384f381
commit
43c236e8a5
2 changed files with 5 additions and 1 deletions
|
@ -659,6 +659,7 @@ export default class MessagePanel extends React.Component {
|
||||||
showReactions={this.props.showReactions}
|
showReactions={this.props.showReactions}
|
||||||
layout={this.props.layout}
|
layout={this.props.layout}
|
||||||
enableFlair={this.props.enableFlair}
|
enableFlair={this.props.enableFlair}
|
||||||
|
showReadReceipts={this.props.showReadReceipts}
|
||||||
/>
|
/>
|
||||||
</TileErrorBoundary>
|
</TileErrorBoundary>
|
||||||
</li>,
|
</li>,
|
||||||
|
|
|
@ -260,6 +260,9 @@ export default class EventTile extends React.Component {
|
||||||
|
|
||||||
// whether or not to show flair at all
|
// whether or not to show flair at all
|
||||||
enableFlair: PropTypes.bool,
|
enableFlair: PropTypes.bool,
|
||||||
|
|
||||||
|
// whether or not to show read receipts
|
||||||
|
showReadReceipts: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
@ -989,7 +992,7 @@ export default class EventTile extends React.Component {
|
||||||
const ircPadlock = useIRCLayout && !isBubbleMessage && this._renderE2EPadlock();
|
const ircPadlock = useIRCLayout && !isBubbleMessage && this._renderE2EPadlock();
|
||||||
|
|
||||||
let msgOption;
|
let msgOption;
|
||||||
if (SettingsStore.getValue("showReadReceipts")) {
|
if (this.props.showReadReceipts) {
|
||||||
msgOption = (
|
msgOption = (
|
||||||
<div className="mx_EventTile_msgOption">
|
<div className="mx_EventTile_msgOption">
|
||||||
{ readAvatars }
|
{ readAvatars }
|
||||||
|
|
Loading…
Reference in a new issue