pmrt / whatshidden

What's hidden? - Read revoked WhatsApp messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle better messages with not supported type

pmrt opened this issue · comments

  • toString should return: not supported.

export function extract(msgData) {
const type = Type[msgData.type];
return type ? new type(msgData) : new Message(msgData);
}

toString() doesn't exist in parent < Messages >, so it will throw an error.