use renamed decrypt event method

This commit is contained in:
Germain Souquet 2021-05-18 13:01:38 +01:00
parent 1cfd4b6e1a
commit f9f10de0da
5 changed files with 8 additions and 14 deletions

View file

@ -1149,10 +1149,8 @@ class TimelinePanel extends React.Component {
arrayFastClone(events)
.reverse()
.forEach(event => {
if (event.shouldAttemptDecryption()) {
const client = MatrixClientPeg.get();
client.decryptEvent(event);
}
const client = MatrixClientPeg.get();
client.decryptEventIfNeeded(event);
});
const firstVisibleEventIndex = this._checkForPreJoinUISI(events);