Skip to content
Merged
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/thick-wasps-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixes inconsistency in roomLeft event payload by aligning it to the standard outgoing events signature.
5 changes: 5 additions & 0 deletions .changeset/tricky-trees-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Removes sensitive data from outgoing events debug logs.
11 changes: 9 additions & 2 deletions apps/meteor/app/integrations/server/lib/triggerHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,17 @@ class RocketChatIntegrationHandler {
}
break;
case 'roomJoined':
case 'roomLeft':
if (args.length >= 3) {
argObject.user = args[1] as IUser;
argObject.room = args[2] as IRoom;
}
break;
case 'roomLeft':
if (args.length >= 3) {
argObject.user = (args[1] as { user: IUser })?.user;
argObject.room = args[2] as IRoom;
}
break;
case 'userCreated':
if (args.length >= 2) {
argObject.user = args[1] as IUser;
Expand All @@ -235,7 +240,9 @@ class RocketChatIntegrationHandler {

outgoingLogger.debug({
msg: `Got the event arguments for the event: ${argObject.event}`,
argObject,
messageId: argObject.message?._id,
roomId: argObject.room?._id,
userId: argObject.user?._id || argObject.owner?._id,
});

return argObject;
Expand Down
Loading