Fix room list sorted by recent on app startup (#9515)
This commit is contained in:
parent
c497046e39
commit
750ca78e98
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ const getLastTs = (r: Room, userId: string) => {
|
|||
|
||||
const threadLastEventTimestamps = r.getThreads().map(thread => {
|
||||
const event = thread.replyToEvent ?? thread.rootEvent;
|
||||
return event!.getTs();
|
||||
return event?.getTs() ?? 0;
|
||||
});
|
||||
|
||||
return Math.max(mainTimelineLastTs, ...threadLastEventTimestamps);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue