Consider continuations when resolving whether a tile is last in section (#7461)
This commit is contained in:
parent
fbfd2c3d20
commit
8f60d8d2c7
1 changed files with 6 additions and 4 deletions
|
@ -727,12 +727,14 @@ export default class MessagePanel extends React.Component<IProps, IState> {
|
||||||
ret.push(dateSeparator);
|
ret.push(dateSeparator);
|
||||||
}
|
}
|
||||||
|
|
||||||
let willWantDateSeparator = false;
|
|
||||||
let lastInSection = true;
|
let lastInSection = true;
|
||||||
if (nextEventWithTile) {
|
if (nextEventWithTile) {
|
||||||
willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEventWithTile.getDate() || new Date());
|
const nextEv = nextEventWithTile;
|
||||||
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEventWithTile.getSender() ||
|
const willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEv.getDate() || new Date());
|
||||||
getEventDisplayInfo(nextEventWithTile).isInfoMessage;
|
lastInSection = willWantDateSeparator ||
|
||||||
|
mxEv.getSender() !== nextEv.getSender() ||
|
||||||
|
getEventDisplayInfo(nextEv).isInfoMessage ||
|
||||||
|
!shouldFormContinuation(mxEv, nextEv, this.showHiddenEvents, this.context.timelineRenderingType);
|
||||||
}
|
}
|
||||||
|
|
||||||
// is this a continuation of the previous message?
|
// is this a continuation of the previous message?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue