mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
fix: Messages are appearing to everyone, even without "show all"
This commit is contained in:
@@ -210,7 +210,10 @@ const TicketsList = ({ status, searchParam, showAll }) => {
|
||||
});
|
||||
|
||||
socket.on("appMessage", data => {
|
||||
if (data.action === "create") {
|
||||
if (
|
||||
data.action === "create" &&
|
||||
(!data.ticket.userId || data.ticket.userId === userId || showAll)
|
||||
) {
|
||||
dispatch({
|
||||
type: "UPDATE_TICKET_MESSAGES_COUNT",
|
||||
payload: data.ticket,
|
||||
|
||||
Reference in New Issue
Block a user