Fix threads broken layout (#6997)

This commit is contained in:
Germain 2021-10-20 18:14:24 +01:00 committed by GitHub
parent 115c6e8357
commit 35b5109c2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 27 deletions

View file

@ -64,10 +64,10 @@ const useFilteredThreadsTimelinePanel = ({
filterOption: ThreadFilterType;
updateTimeline: () => void;
}) => {
const timelineSet = useMemo(() => new EventTimelineSet(room, {
unstableClientRelationAggregation: true,
const timelineSet = useMemo(() => new EventTimelineSet(null, {
timelineSupport: true,
}), [room]);
unstableClientRelationAggregation: true,
}), []);
useEffect(() => {
let filteredThreads = Array.from(threads);
@ -217,7 +217,7 @@ const ThreadPanel: React.FC<IProps> = ({ roomId, onClose }) => {
showReactions={true}
className="mx_RoomView_messagePanel mx_GroupLayout"
membersLoaded={true}
tileShape={TileShape.Thread}
tileShape={TileShape.ThreadPanel}
/>
</BaseCard>
</RoomContext.Provider>