From 7174648f94cedc174499e1bba113ff9eb9d7755a Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 8 Sep 2016 03:01:38 +0100 Subject: [PATCH] don't show RRs if manageRRs is false --- src/components/structures/MessagePanel.js | 8 +++++++- src/components/structures/TimelinePanel.js | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 54ed501289..4dd4a488f9 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -60,6 +60,9 @@ module.exports = React.createClass({ // true to suppress the date at the start of the timeline suppressFirstDateSeparator: React.PropTypes.bool, + // whether to show read receipts + manageReadReceipts: React.PropTypes.bool, + // true if updates to the event list should cause the scroll panel to // scroll down when we are at the bottom of the window. See ScrollPanel // for more details. @@ -373,7 +376,10 @@ module.exports = React.createClass({ // Local echos have a send "status". var scrollToken = mxEv.status ? undefined : eventId; - var readReceipts = this._getReadReceiptsForEvent(mxEv); + var readReceipts; + if (this.props.manageReadReceipts) { + readReceipts = this._getReadReceiptsForEvent(mxEv); + } ret.push(