mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
feat: handle vcard messages
This commit is contained in:
@@ -305,8 +305,8 @@ const wbotMessageListener = (whatsapp: Whatsapp): void => {
|
||||
await new Promise(r => setTimeout(r, 500));
|
||||
|
||||
try {
|
||||
const messageToUpdate = await Message.findOne({
|
||||
where: { id: msg.id.id }
|
||||
const messageToUpdate = await Message.findByPk(msg.id.id, {
|
||||
include: ["contact", "vcardContact"]
|
||||
});
|
||||
if (!messageToUpdate) {
|
||||
return;
|
||||
|
||||
@@ -455,13 +455,13 @@ const Ticket = () => {
|
||||
src={message.vcardContact?.profilePicUrl}
|
||||
/>
|
||||
}
|
||||
title={message?.vcardContact?.name}
|
||||
subheader={message?.vcardContact?.number}
|
||||
title={message.vcardContact?.name}
|
||||
subheader={message.vcardContact?.number}
|
||||
/>
|
||||
<CardActions>
|
||||
<Button size="small" variant="contained">
|
||||
{/* <Button size="small" variant="contained">
|
||||
Send Message
|
||||
</Button>
|
||||
</Button> */}
|
||||
</CardActions>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user