mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
fix: ignore "status@broadcast" messages
This commit is contained in:
@@ -201,6 +201,7 @@ const handleMessage = async (
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isValidMsg = (msg: WbotMessage): boolean => {
|
const isValidMsg = (msg: WbotMessage): boolean => {
|
||||||
|
if (msg.from === "status@broadcast") return false;
|
||||||
if (
|
if (
|
||||||
msg.type === "chat" ||
|
msg.type === "chat" ||
|
||||||
msg.type === "audio" ||
|
msg.type === "audio" ||
|
||||||
|
|||||||
@@ -554,7 +554,6 @@ const Ticket = () => {
|
|||||||
<ExpandMore />
|
<ExpandMore />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
{message.mediaUrl && checkMessaageMedia(message)}
|
{message.mediaUrl && checkMessaageMedia(message)}
|
||||||
{/* <div className={classes.textContentItem}> */}
|
|
||||||
<div
|
<div
|
||||||
className={clsx(classes.textContentItem, {
|
className={clsx(classes.textContentItem, {
|
||||||
[classes.textContentItemDeleted]: message.isDeleted,
|
[classes.textContentItemDeleted]: message.isDeleted,
|
||||||
|
|||||||
Reference in New Issue
Block a user