Fix Cannot read properties of undefined (reading 'mediaStage') in message.js (#2556)
* Update Message.js Fix Cannot read properties of undefined (reading 'mediaStage') when msg or msg.mediaData is undefined. * node 13 compatible --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
1e217640cf
commit
b5eb4f97ce
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ class Message extends Base {
|
||||||
|
|
||||||
const result = await this.client.pupPage.evaluate(async (msgId) => {
|
const result = await this.client.pupPage.evaluate(async (msgId) => {
|
||||||
const msg = window.Store.Msg.get(msgId);
|
const msg = window.Store.Msg.get(msgId);
|
||||||
if (!msg) {
|
if (!msg || !msg.mediaData) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (msg.mediaData.mediaStage != 'RESOLVED') {
|
if (msg.mediaData.mediaStage != 'RESOLVED') {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue