Merge pull request #6776 from robintown/bubble-corners

This commit is contained in:
Germain 2021-09-09 22:43:32 +01:00 committed by GitHub
commit 6d38256c6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -705,9 +705,9 @@ export default class MessagePanel extends React.Component<IProps, IState> {
let willWantDateSeparator = false; let willWantDateSeparator = false;
let lastInSection = true; let lastInSection = true;
if (nextEvent) { if (nextEventWithTile) {
willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEvent.getDate() || new Date()); willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEventWithTile.getDate() || new Date());
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEvent.getSender(); lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEventWithTile.getSender();
} }
// is this a continuation of the previous message? // is this a continuation of the previous message?