1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Thread list ordering by last reply (#8112)

This commit is contained in:
Germain
2022-03-23 14:43:33 +00:00
committed by GitHub
parent eb668538aa
commit d922ee2cb9
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);
}