mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
improvement: remove tickets logic from useTickets to improve notifications
This commit is contained in:
@@ -138,12 +138,15 @@ const handleMessage = async (
|
||||
}
|
||||
|
||||
const io = getIO();
|
||||
io.to(ticket.id.toString()).to("notification").emit("appMessage", {
|
||||
action: "create",
|
||||
message: newMessage,
|
||||
ticket,
|
||||
contact
|
||||
});
|
||||
io.to(ticket.id.toString())
|
||||
.to(ticket.status)
|
||||
.to("notification")
|
||||
.emit("appMessage", {
|
||||
action: "create",
|
||||
message: newMessage,
|
||||
ticket,
|
||||
contact
|
||||
});
|
||||
};
|
||||
|
||||
const isValidMsg = (msg: WbotMessage): boolean => {
|
||||
|
||||
Reference in New Issue
Block a user