Thread list ordering by last reply (#8112)

pull/21833/head
Germain 2022-03-23 14:43:33 +00:00 committed by GitHub
parent eb668538aa
commit d922ee2cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -172,6 +172,7 @@ const ThreadPanel: React.FC<IProps> = ({
room.createThreadsTimelineSets().then(() => {
setRoom(room);
setFilterOption(ThreadFilterType.All);
room.fetchRoomThreads();
});
}, [mxClient, roomId]);

View File

@ -501,7 +501,9 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
}
}
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
client.decryptEventIfNeeded(this.props.mxEvent);
const room = client.getRoom(this.props.mxEvent.getRoomId());
room?.on(ThreadEvent.New, this.onNewThread);
}