Skip to content

Commit

Permalink
message recorded for no media messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCezarAraujo committed Nov 14, 2024
1 parent d797d81 commit ef75742
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,11 @@ export class BusinessStartupService extends ChannelStartupService {
}
}

await this.prismaRepository.message.create({
data: messageRaw,
});
if (!this.isMediaMessage(received?.messages[0])) {
await this.prismaRepository.message.create({
data: messageRaw,
});
}

const contact = await this.prismaRepository.contact.findFirst({
where: { instanceId: this.instanceId, remoteJid: key.remoteJid },
Expand Down

0 comments on commit ef75742

Please sign in to comment.