Update lastReply to filter out local event ID from thread fallback (#7620)
This commit is contained in:
parent
1d02e61655
commit
ecd5be8a8f
3 changed files with 10 additions and 6 deletions
|
@ -88,7 +88,7 @@ async function getThreadTimelineSet(
|
|||
const timelineSet = new EventTimelineSet(room, {});
|
||||
|
||||
Array.from(room.threads)
|
||||
.sort(([, threadA], [, threadB]) => threadA.lastReply.getTs() - threadB.lastReply.getTs())
|
||||
.sort(([, threadA], [, threadB]) => threadA.lastReply().getTs() - threadB.lastReply().getTs())
|
||||
.forEach(([, thread]) => {
|
||||
const isOwnEvent = thread.rootEvent.getSender() === client.getUserId();
|
||||
if (filterType !== ThreadFilterType.My || isOwnEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue