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

Commit 3144759

Browse files
authored
Fix bubble radius wrong when followed by a state event from same user (#7393)
1 parent 4a9173a commit 3144759

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/structures/MessagePanel.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import TileErrorBoundary from '../views/messages/TileErrorBoundary';
5050
import { RoomPermalinkCreator } from "../../utils/permalinks/Permalinks";
5151
import EditorStateTransfer from "../../utils/EditorStateTransfer";
5252
import { Action } from '../../dispatcher/actions';
53+
import { getEventDisplayInfo } from "../../utils/EventUtils";
5354

5455
const CONTINUATION_MAX_INTERVAL = 5 * 60 * 1000; // 5 minutes
5556
const continuedTypes = [EventType.Sticker, EventType.RoomMessage];
@@ -724,7 +725,8 @@ export default class MessagePanel extends React.Component<IProps, IState> {
724725
let lastInSection = true;
725726
if (nextEventWithTile) {
726727
willWantDateSeparator = this.wantsDateSeparator(mxEv, nextEventWithTile.getDate() || new Date());
727-
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEventWithTile.getSender();
728+
lastInSection = willWantDateSeparator || mxEv.getSender() !== nextEventWithTile.getSender() ||
729+
getEventDisplayInfo(nextEventWithTile).isInfoMessage;
728730
}
729731

730732
// is this a continuation of the previous message?

0 commit comments

Comments
 (0)