Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(uikit): uikit interactions #30534

Merged
merged 13 commits into from
Oct 19, 2023
7 changes: 4 additions & 3 deletions apps/meteor/app/apps/server/bridges/uiInteraction.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { IUIKitInteraction } from '@rocket.chat/apps-engine/definition/uikit';
import type { IUser } from '@rocket.chat/apps-engine/definition/users';
import { UiInteractionBridge as UiIntBridge } from '@rocket.chat/apps-engine/server/bridges/UiInteractionBridge';
import { UiInteractionBridge as AppsEngineUiInteractionBridge } from '@rocket.chat/apps-engine/server/bridges/UiInteractionBridge';
import { api } from '@rocket.chat/core-services';
import type { UiKit } from '@rocket.chat/core-typings';

import type { AppServerOrchestrator } from '../../../../ee/server/apps/orchestrator';

export class UiInteractionBridge extends UiIntBridge {
export class UiInteractionBridge extends AppsEngineUiInteractionBridge {
constructor(private readonly orch: AppServerOrchestrator) {
super();
}
Expand All @@ -19,6 +20,6 @@ export class UiInteractionBridge extends UiIntBridge {
throw new Error('Invalid app provided');
}

void api.broadcast('notify.uiInteraction', user.id, interaction);
void api.broadcast('notify.uiInteraction', user.id, interaction as UiKit.ServerInteraction);
}
}
261 changes: 0 additions & 261 deletions apps/meteor/app/ui-message/client/ActionManager.js

This file was deleted.

Loading
Loading