Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/omnichannel-audit-visitor-agent-filtering.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fix Omnichannel audit filtering by forwarding selected visitor and agent IDs to `POST /v1/audit.omnichannelMessages` API endpoint.
7 changes: 2 additions & 5 deletions apps/meteor/client/views/audit/hooks/useAuditMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ export const useAuditMutation = (type: IAuditLog['fields']['type']) => {
startDate,
endDate,
users,
// TODO: the Omnichannel audit form collects visitor/agent (required fields) but they are
// dropped here — carried over from the original DDP flow. Forwarding them would let the
// omnichannel audit filter by the selected visitor/agent. Left for investigation.
visitor: '',
agent: '',
visitor,
agent,
});
return messages.map((message) => mapMessageFromApi(message));
}
Expand Down