mirror of https://github.com/vector-im/riot-web
Thread list ordering by last reply (#8112)
parent
eb668538aa
commit
d922ee2cb9
|
@ -172,6 +172,7 @@ const ThreadPanel: React.FC<IProps> = ({
|
||||||
room.createThreadsTimelineSets().then(() => {
|
room.createThreadsTimelineSets().then(() => {
|
||||||
setRoom(room);
|
setRoom(room);
|
||||||
setFilterOption(ThreadFilterType.All);
|
setFilterOption(ThreadFilterType.All);
|
||||||
|
room.fetchRoomThreads();
|
||||||
});
|
});
|
||||||
}, [mxClient, roomId]);
|
}, [mxClient, roomId]);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
room?.on(ThreadEvent.New, this.onNewThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue