Force update on failed auth instead

This commit is contained in:
Jiiks 2018-08-12 21:59:54 +03:00
parent 71a0ce8fb0
commit ad35c89d7d
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ 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.props.readyState = 'READY';
if (component && component.props) component.forceUpdate();
return;
}