Skip to content

Commit

Permalink
Regression: get user from req on ui.interaction endpoints (#26256)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Jul 13, 2022
1 parent c49aff1 commit 9523184
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/meteor/app/apps/server/communication/uikit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ const getPayloadForType = (type: UIKitIncomingInteractionType, req: Request): {}
if (type === UIKitIncomingInteractionType.BLOCK) {
const { type, actionId, triggerId, mid, rid, payload, container } = req.body;

const { visitor, user } = req.body;
const { visitor } = req.body;
const { user } = req;

const room = rid; // orch.getConverters().get('rooms').convertById(rid);
const message = mid;

Expand All @@ -117,7 +119,7 @@ const getPayloadForType = (type: UIKitIncomingInteractionType, req: Request): {}
payload: { view, isCleared },
} = req.body;

const { user } = req.body;
const { user } = req;

return {
type,
Expand All @@ -133,7 +135,7 @@ const getPayloadForType = (type: UIKitIncomingInteractionType, req: Request): {}
if (type === UIKitIncomingInteractionType.VIEW_SUBMIT) {
const { type, actionId, triggerId, payload } = req.body;

const { user } = req.body;
const { user } = req;

return {
type,
Expand Down

0 comments on commit 9523184

Please sign in to comment.