Set readyState on failed authentication

This commit is contained in:
Jiiks 2018-08-12 21:58:26 +03:00
parent d53a3b4d64
commit 71a0ce8fb0
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +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';
return;
}