fix: only return undefined for ERROR_* media states
This was causing a regression as of 1.2.5 that caused media files sent by the client to not be properly downloaded cc #111 @stevefold
This commit is contained in:
parent
c3ba79464b
commit
001c045c08
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ class Message extends Base {
|
||||||
await msg.downloadMedia(true, 1);
|
await msg.downloadMedia(true, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(msg.mediaData.mediaStage != 'RESOLVED') {
|
if(msg.mediaData.mediaStage.includes('ERROR')) {
|
||||||
// media could not be downloaded
|
// media could not be downloaded
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue