@@ -131,6 +131,8 @@ var TimelinePanel = React.createClass({
131
131
}
132
132
}
133
133
134
+ const syncedSettings = UserSettingsStore . getSyncedSettings ( ) ;
135
+
134
136
return {
135
137
events : [ ] ,
136
138
timelineLoading : true , // track whether our room timeline is loading
@@ -175,10 +177,13 @@ var TimelinePanel = React.createClass({
175
177
clientSyncState : MatrixClientPeg . get ( ) . getSyncState ( ) ,
176
178
177
179
// should the event tiles have twelve hour times
178
- isTwelveHour : UserSettingsStore . getSyncedSetting ( ' showTwelveHourTimestamps' ) ,
180
+ isTwelveHour : syncedSettings . showTwelveHourTimestamps ,
179
181
180
182
// always show timestamps on event tiles?
181
- alwaysShowTimestamps : UserSettingsStore . getSyncedSetting ( 'alwaysShowTimestamps' ) ,
183
+ alwaysShowTimestamps : syncedSettings . alwaysShowTimestamps ,
184
+
185
+ // hide redacted events as per old behaviour
186
+ hideRedactions : syncedSettings . hideRedactions ,
182
187
} ;
183
188
} ,
184
189
@@ -915,7 +920,7 @@ var TimelinePanel = React.createClass({
915
920
} ) ;
916
921
} ;
917
922
}
918
- var message = ( error . errcode == 'M_FORBIDDEN' )
923
+ var message = ( error . errcode == 'M_FORBIDDEN' )
919
924
? _t ( "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question" ) + "."
920
925
: _t ( "Tried to load a specific point in this room's timeline, but was unable to find it" ) + "." ;
921
926
Modal . createDialog ( ErrorDialog , {
@@ -1113,26 +1118,27 @@ var TimelinePanel = React.createClass({
1113
1118
) ;
1114
1119
return (
1115
1120
< MessagePanel ref = "messagePanel"
1116
- hidden = { this . props . hidden }
1117
- backPaginating = { this . state . backPaginating }
1118
- forwardPaginating = { forwardPaginating }
1119
- events = { this . state . events }
1120
- highlightedEventId = { this . props . highlightedEventId }
1121
- readMarkerEventId = { this . state . readMarkerEventId }
1122
- readMarkerVisible = { this . state . readMarkerVisible }
1123
- suppressFirstDateSeparator = { this . state . canBackPaginate }
1124
- showUrlPreview = { this . props . showUrlPreview }
1125
- manageReadReceipts = { this . props . manageReadReceipts }
1126
- ourUserId = { MatrixClientPeg . get ( ) . credentials . userId }
1127
- stickyBottom = { stickyBottom }
1128
- onScroll = { this . onMessageListScroll }
1129
- onFillRequest = { this . onMessageListFillRequest }
1130
- onUnfillRequest = { this . onMessageListUnfillRequest }
1131
- opacity = { this . props . opacity }
1132
- isTwelveHour = { this . state . isTwelveHour }
1133
- alwaysShowTimestamps = { this . state . alwaysShowTimestamps }
1134
- className = { this . props . className }
1135
- tileShape = { this . props . tileShape }
1121
+ hidden = { this . props . hidden }
1122
+ hideRedactions = { this . state . hideRedactions }
1123
+ backPaginating = { this . state . backPaginating }
1124
+ forwardPaginating = { forwardPaginating }
1125
+ events = { this . state . events }
1126
+ highlightedEventId = { this . props . highlightedEventId }
1127
+ readMarkerEventId = { this . state . readMarkerEventId }
1128
+ readMarkerVisible = { this . state . readMarkerVisible }
1129
+ suppressFirstDateSeparator = { this . state . canBackPaginate }
1130
+ showUrlPreview = { this . props . showUrlPreview }
1131
+ manageReadReceipts = { this . props . manageReadReceipts }
1132
+ ourUserId = { MatrixClientPeg . get ( ) . credentials . userId }
1133
+ stickyBottom = { stickyBottom }
1134
+ onScroll = { this . onMessageListScroll }
1135
+ onFillRequest = { this . onMessageListFillRequest }
1136
+ onUnfillRequest = { this . onMessageListUnfillRequest }
1137
+ opacity = { this . props . opacity }
1138
+ isTwelveHour = { this . state . isTwelveHour }
1139
+ alwaysShowTimestamps = { this . state . alwaysShowTimestamps }
1140
+ className = { this . props . className }
1141
+ tileShape = { this . props . tileShape }
1136
1142
/>
1137
1143
) ;
1138
1144
} ,
0 commit comments