Set readyState on failed authentication
This commit is contained in:
parent
d53a3b4d64
commit
71a0ce8fb0
|
@ -165,6 +165,7 @@ export default new class E2EE extends BuiltinModule {
|
||||||
const validateHmac = await this.createHmac(data);
|
const validateHmac = await this.createHmac(data);
|
||||||
if (hmac !== validateHmac) {
|
if (hmac !== validateHmac) {
|
||||||
Cache.push('e2ee:images', { src, invalidKey: true });
|
Cache.push('e2ee:images', { src, invalidKey: true });
|
||||||
|
if (component && component.props) component.props.readyState = 'READY';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue