This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/components/structures Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ module.exports = React.createClass({
6565 suppressFirstDateSeparator : React . PropTypes . bool ,
6666
6767 // whether to show read receipts
68- manageReadReceipts : React . PropTypes . bool ,
68+ showReadReceipts : React . PropTypes . bool ,
6969
7070 // true if updates to the event list should cause the scroll panel to
7171 // scroll down when we are at the bottom of the window. See ScrollPanel
@@ -491,7 +491,7 @@ module.exports = React.createClass({
491491 var scrollToken = mxEv . status ? undefined : eventId ;
492492
493493 var readReceipts ;
494- if ( this . props . manageReadReceipts ) {
494+ if ( this . props . showReadReceipts ) {
495495 readReceipts = this . _getReadReceiptsForEvent ( mxEv ) ;
496496 }
497497 ret . push (
Original file line number Diff line number Diff line change @@ -1716,7 +1716,8 @@ module.exports = React.createClass({
17161716 var messagePanel = (
17171717 < TimelinePanel ref = { this . _gatherTimelinePanelRef }
17181718 timelineSet = { this . state . room . getUnfilteredTimelineSet ( ) }
1719- manageReadReceipts = { ! UserSettingsStore . getSyncedSetting ( 'hideReadReceipts' , false ) }
1719+ showReadReceipts = { ! UserSettingsStore . getSyncedSetting ( 'hideReadReceipts' , false ) }
1720+ manageReadReceipts = { true }
17201721 manageReadMarkers = { true }
17211722 hidden = { hideMessagePanel }
17221723 highlightedEventId = { highlightedEventId }
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ var TimelinePanel = React.createClass({
5959 // that room.
6060 timelineSet : React . PropTypes . object . isRequired ,
6161
62+ showReadReceipts : React . PropTypes . bool ,
6263 // Enable managing RRs and RMs. These require the timelineSet to have a room.
6364 manageReadReceipts : React . PropTypes . bool ,
6465 manageReadMarkers : React . PropTypes . bool ,
@@ -1140,8 +1141,8 @@ var TimelinePanel = React.createClass({
11401141 readMarkerEventId = { this . state . readMarkerEventId }
11411142 readMarkerVisible = { this . state . readMarkerVisible }
11421143 suppressFirstDateSeparator = { this . state . canBackPaginate }
1143- showUrlPreview = { this . props . showUrlPreview }
1144- manageReadReceipts = { this . props . manageReadReceipts }
1144+ showUrlPreview = { this . props . showUrlPreview }
1145+ showReadReceipts = { this . props . showReadReceipts }
11451146 ourUserId = { MatrixClientPeg . get ( ) . credentials . userId }
11461147 stickyBottom = { stickyBottom }
11471148 onScroll = { this . onMessageListScroll }
You can’t perform that action at this time.
0 commit comments