1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

stop assuming that decryption happens ahead of time

This commit is contained in:
Germain Souquet
2021-05-18 10:02:21 +01:00
parent 4929e3f3ed
commit 871c48f69b
5 changed files with 23 additions and 1 deletions

View File

@@ -811,7 +811,7 @@ export default class RoomView extends React.Component<IProps, IState> {
};
private onEvent = (ev) => {
if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return;
if (ev.isBeingDecrypted() || ev.isDecryptionFailure() || ev.shouldAttemptDecryption()) return;
this.handleEffects(ev);
};