1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

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);