Collapse grouped conversations too

pull/228/head
Lim Chee Aun 2023-09-24 18:11:23 +08:00
rodzic d4dca0e81f
commit cb36308790
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -412,7 +412,13 @@ function Timeline({
const isSpoiler = item.sensitive && !!item.spoilerText;
const showCompact =
(isSpoiler && i > 0) ||
(manyItems && isMiddle && type === 'thread');
(manyItems &&
isMiddle &&
(type === 'thread' ||
(type === 'conversation' &&
!_differentAuthor &&
!items[i - 1]._differentAuthor &&
!items[i + 1]._differentAuthor)));
return (
<li
key={`timeline-${statusID}`}