Skip to content

Commit

Permalink
feat: add tmid to UiKit interaction block action (#29639)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 24, 2023
1 parent 0645f42 commit 1dd51c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion apps/meteor/app/ui-message/client/ActionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const handlePayloadUserInteraction = (type, { /* appId,*/ triggerId, ...data })
return UIKitInteractionTypes.MODAL_ClOSE;
};

export const triggerAction = async ({ type, actionId, appId, rid, mid, viewId, container, ...rest }) =>
export const triggerAction = async ({ type, actionId, appId, rid, mid, viewId, container, tmid, ...rest }) =>
new Promise(async (resolve, reject) => {
const triggerId = generateTriggerId(appId);

Expand All @@ -177,6 +177,7 @@ export const triggerAction = async ({ type, actionId, appId, rid, mid, viewId, c
container,
mid,
rid,
tmid,
triggerId,
viewId,
});
Expand Down
2 changes: 2 additions & 0 deletions apps/meteor/ee/server/apps/communication/uikit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ const appsRoutes =
triggerId,
rid,
mid,
tmid,
payload: { context, message: msgText },
} = req.body;

Expand All @@ -298,6 +299,7 @@ const appsRoutes =
user,
room,
message,
tmid,
payload: {
context,
...(msgText && { message: msgText }),
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"@rocket.chat/account-utils": "workspace:^",
"@rocket.chat/agenda": "workspace:^",
"@rocket.chat/api-client": "workspace:^",
"@rocket.chat/apps-engine": "1.40.0-alpha.275",
"@rocket.chat/apps-engine": "1.40.0-alpha.280",
"@rocket.chat/base64": "workspace:^",
"@rocket.chat/cas-validate": "workspace:^",
"@rocket.chat/core-services": "workspace:^",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9354,9 +9354,9 @@ __metadata:
languageName: node
linkType: hard

"@rocket.chat/apps-engine@npm:1.40.0-alpha.275":
version: 1.40.0-alpha.275
resolution: "@rocket.chat/apps-engine@npm:1.40.0-alpha.275"
"@rocket.chat/apps-engine@npm:1.40.0-alpha.280":
version: 1.40.0-alpha.280
resolution: "@rocket.chat/apps-engine@npm:1.40.0-alpha.280"
dependencies:
adm-zip: ^0.5.9
cryptiles: ^4.1.3
Expand All @@ -9368,7 +9368,7 @@ __metadata:
vm2: ^3.9.19
peerDependencies:
"@rocket.chat/ui-kit": "*"
checksum: 77a4ad45c409397a7a8b1ef4ee2db67af75aa7a1f8a078cc59bc69681e8338ed90a110dfc279a46dc84d6bc93e4e43880ec1620a73837a6a9dcccbe055a51212
checksum: e52495051a4f245ee04794a88df6f0c771f16367448290a8e83603ddc9341585d62699c84e829515ca43afe3e19135d38b205019a3ad611e7cbcbe45e5de978e
languageName: node
linkType: hard

Expand Down Expand Up @@ -10113,7 +10113,7 @@ __metadata:
"@rocket.chat/account-utils": "workspace:^"
"@rocket.chat/agenda": "workspace:^"
"@rocket.chat/api-client": "workspace:^"
"@rocket.chat/apps-engine": 1.40.0-alpha.275
"@rocket.chat/apps-engine": 1.40.0-alpha.280
"@rocket.chat/base64": "workspace:^"
"@rocket.chat/cas-validate": "workspace:^"
"@rocket.chat/core-services": "workspace:^"
Expand Down

0 comments on commit 1dd51c0

Please sign in to comment.