mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-19 09:53:36 -06:00
message recorded for no media messages
This commit is contained in:
parent
d797d8177c
commit
ef7574273c
@ -504,9 +504,11 @@ export class BusinessStartupService extends ChannelStartupService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.prismaRepository.message.create({
|
if (!this.isMediaMessage(received?.messages[0])) {
|
||||||
data: messageRaw,
|
await this.prismaRepository.message.create({
|
||||||
});
|
data: messageRaw,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const contact = await this.prismaRepository.contact.findFirst({
|
const contact = await this.prismaRepository.contact.findFirst({
|
||||||
where: { instanceId: this.instanceId, remoteJid: key.remoteJid },
|
where: { instanceId: this.instanceId, remoteJid: key.remoteJid },
|
||||||
|
Loading…
Reference in New Issue
Block a user