diff --git a/src/structures/Message.js b/src/structures/Message.js index ee79c20..7ac5536 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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({