Improve comments and explainer for new decryption approach

This commit is contained in:
Germain Souquet 2021-05-11 10:18:53 +01:00
parent be236309c5
commit da1df70557
3 changed files with 19 additions and 11 deletions

View file

@ -906,6 +906,10 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
let presentedId = roomInfo.room_alias || roomInfo.room_id;
const room = MatrixClientPeg.get().getRoom(roomInfo.room_id);
if (room) {
// Not all timeline events are decrypted ahead of time anymore
// Only the critical ones for a typical UI are
// This will start the decryption process for all events when a
// user views a room
room.decryptAllEvents();
const theAlias = Rooms.getDisplayAliasForRoom(room);
if (theAlias) {