mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +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));
|
await new Promise(r => setTimeout(r, 500));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const messageToUpdate = await Message.findOne({
|
const messageToUpdate = await Message.findByPk(msg.id.id, {
|
||||||
where: { id: msg.id.id }
|
include: ["contact", "vcardContact"]
|
||||||
});
|
});
|
||||||
if (!messageToUpdate) {
|
if (!messageToUpdate) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -455,13 +455,13 @@ const Ticket = () => {
|
|||||||
src={message.vcardContact?.profilePicUrl}
|
src={message.vcardContact?.profilePicUrl}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
title={message?.vcardContact?.name}
|
title={message.vcardContact?.name}
|
||||||
subheader={message?.vcardContact?.number}
|
subheader={message.vcardContact?.number}
|
||||||
/>
|
/>
|
||||||
<CardActions>
|
<CardActions>
|
||||||
<Button size="small" variant="contained">
|
{/* <Button size="small" variant="contained">
|
||||||
Send Message
|
Send Message
|
||||||
</Button>
|
</Button> */}
|
||||||
</CardActions>
|
</CardActions>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user