fix method downloadMedia when not found msg (#1852)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
parent
bd0e27a0d0
commit
bd192993b7
1 changed files with 3 additions and 1 deletions
|
|
@ -386,7 +386,9 @@ class Message extends Base {
|
|||
|
||||
const result = await this.client.pupPage.evaluate(async (msgId) => {
|
||||
const msg = window.Store.Msg.get(msgId);
|
||||
|
||||
if (!msg) {
|
||||
return undefined;
|
||||
}
|
||||
if (msg.mediaData.mediaStage != 'RESOLVED') {
|
||||
// try to resolve media
|
||||
await msg.downloadMedia({
|
||||
|
|
|
|||
Loading…
Reference in a new issue