You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-13 06:02:19 +03:00
Disable pending events in thread panel event timeline set (#7874)
This commit is contained in:
@@ -86,7 +86,9 @@ export async function getThreadTimelineSet(
|
|||||||
// Filter creation fails if HomeServer does not support the new relation
|
// Filter creation fails if HomeServer does not support the new relation
|
||||||
// filter fields. We fallback to the threads that have been discovered in
|
// filter fields. We fallback to the threads that have been discovered in
|
||||||
// the main timeline
|
// the main timeline
|
||||||
const timelineSet = new EventTimelineSet(room, {});
|
const timelineSet = new EventTimelineSet(room, {
|
||||||
|
pendingEvents: false,
|
||||||
|
});
|
||||||
|
|
||||||
Array.from(room.threads)
|
Array.from(room.threads)
|
||||||
.sort(([, threadA], [, threadB]) => threadA.replyToEvent.getTs() - threadB.replyToEvent.getTs())
|
.sort(([, threadA], [, threadB]) => threadA.replyToEvent.getTs() - threadB.replyToEvent.getTs())
|
||||||
|
|||||||
Reference in New Issue
Block a user