Skip to content

Commit

Permalink
fix: Corrigido erro "null to object" ao enviar mensagem (fix #378)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jul 31, 2021
1 parent 7cb143d commit ec103b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/check-send-exist.js
Expand Up @@ -27,7 +27,7 @@ export function scope(id, erro, status, text = null) {
}
export async function getchatId(chatId) {
var to = await WAPI.getChatById(chatId),
objTo = to.lastReceivedKey,
objTo = to.lastReceivedKey || {},
extend = {
formattedName: to.contact.formattedName,
isBusiness: to.contact.isBusiness,
Expand Down

0 comments on commit ec103b9

Please sign in to comment.