Skip to content

Commit

Permalink
refactor(uikit): uikit interactions (#30534)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Oct 19, 2023
1 parent fff548f commit 7b02ca3
Show file tree
Hide file tree
Showing 80 changed files with 1,531 additions and 1,299 deletions.
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

0 comments on commit 7b02ca3

Please sign in to comment.