You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-05 15:22:09 +03:00
Don't form continuations on either side of a thread root (#8408)
This commit is contained in:
committed by
GitHub
parent
f85e178fc1
commit
a70f11704f
@@ -92,9 +92,13 @@ export function shouldFormContinuation(
|
||||
mxEvent.sender.name !== prevEvent.sender.name ||
|
||||
mxEvent.sender.getMxcAvatarUrl() !== prevEvent.sender.getMxcAvatarUrl()) return false;
|
||||
|
||||
// Thread summaries in the main timeline should break up a continuation
|
||||
if (threadsEnabled && prevEvent.isThreadRoot &&
|
||||
timelineRenderingType !== TimelineRenderingType.Thread) return false;
|
||||
// Thread summaries in the main timeline should break up a continuation on both sides
|
||||
if (threadsEnabled &&
|
||||
(mxEvent.isThreadRoot || prevEvent.isThreadRoot) &&
|
||||
timelineRenderingType !== TimelineRenderingType.Thread
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// if we don't have tile for previous event then it was shown by showHiddenEvents and has no SenderProfile
|
||||
if (!haveRendererForEvent(prevEvent, showHiddenEvents)) return false;
|
||||
|
||||
Reference in New Issue
Block a user