decrypting should be set to false as well

This commit is contained in:
Jiiks 2018-08-12 22:05:44 +03:00
parent ad35c89d7d
commit 3f5b2afbd5
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ export default new class E2EE extends BuiltinModule {
const validateHmac = await this.createHmac(data);
if (hmac !== validateHmac) {
Cache.push('e2ee:images', { src, invalidKey: true });
if (component && component.props) component.forceUpdate();
if (component && component.props) {
component.props.decrypting = false;
component.forceUpdate();
}
return;
}