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

Commit 711e0b5

Browse files
committed
Only apply the continuation break in the main timeline
1 parent 729f267 commit 711e0b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/structures/MessagePanel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export function shouldFormContinuation(
9191
mxEvent.sender.name !== prevEvent.sender.name ||
9292
mxEvent.sender.getMxcAvatarUrl() !== prevEvent.sender.getMxcAvatarUrl()) return false;
9393

94-
// Thread summaries should break up a continuation
95-
if (threadsEnabled && prevEvent.isThreadRoot) return false;
94+
// Thread summaries in the main timeline should break up a continuation
95+
if (threadsEnabled && prevEvent.isThreadRoot &&
96+
timelineRenderingType !== TimelineRenderingType.Thread) return false;
9697

9798
// if we don't have tile for previous event then it was shown by showHiddenEvents and has no SenderProfile
9899
if (!haveTileForEvent(prevEvent, showHiddenEvents)) return false;

0 commit comments

Comments
 (0)