This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/components/structures Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,13 @@ module.exports = React.createClass({
307
307
for ( i = 0 ; i < this . props . events . length ; i ++ ) {
308
308
let mxEv = this . props . events [ i ] ;
309
309
let eventId = mxEv . getId ( ) ;
310
- let readMarkerInMels = false ;
311
310
let last = ( mxEv === lastShownEvent ) ;
312
311
313
312
const wantTile = this . _shouldShowEvent ( mxEv ) ;
314
313
315
314
// Wrap consecutive member events in a ListSummary, ignore if redacted
316
315
if ( isMembershipChange ( mxEv ) && wantTile ) {
316
+ let readMarkerInMels = false ;
317
317
let ts1 = mxEv . getTs ( ) ;
318
318
// Ensure that the key of the MemberEventListSummary does not change with new
319
319
// member events. This will prevent it from being re-created unnecessarily, and
@@ -330,6 +330,11 @@ module.exports = React.createClass({
330
330
ret . push ( dateSeparator ) ;
331
331
}
332
332
333
+ // If RM event is the first in the MELS, append the RM after MELS
334
+ if ( mxEv . getId ( ) === this . props . readMarkerEventId ) {
335
+ readMarkerInMels = true ;
336
+ }
337
+
333
338
let summarisedEvents = [ mxEv ] ;
334
339
for ( ; i + 1 < this . props . events . length ; i ++ ) {
335
340
const collapsedMxEv = this . props . events [ i + 1 ] ;
You can’t perform that action at this time.
0 commit comments