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} 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>,

View file

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