Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6776 from robintown/bubble-corners
Browse files Browse the repository at this point in the history
  • Loading branch information
germain-gg authored Sep 9, 2021
2 parents 051e166 + def1c68 commit 6d38256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/structures/MessagePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ export default class MessagePanel extends React.Component<IProps, IState> {

let willWantDateSeparator = false;
let lastInSection = true;
if (nextEvent) {
willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEvent.getDate() || new Date());
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEvent.getSender();
if (nextEventWithTile) {
willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEventWithTile.getDate() || new Date());
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEventWithTile.getSender();
}

// is this a continuation of the previous message?
Expand Down

0 comments on commit 6d38256

Please sign in to comment.