mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-02-05 06:46:27 -06:00
message recorded for no media messages
This commit is contained in:
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user