Skip to content

Commit

Permalink
Merge branch 'alpha' into feat/livechat-source-destination
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiarafael authored Sep 24, 2024
2 parents c01ba17 + 9e0013a commit f4db9c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
7 changes: 6 additions & 1 deletion deno-runtime/lib/accessors/notifier.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import type { IMessageBuilder, INotifier } from '@rocket.chat/apps-engine/definition/accessors';
import type { ITypingOptions } from '@rocket.chat/apps-engine/definition/accessors/INotifier.ts';
import { TypingScope } from '@rocket.chat/apps-engine/definition/accessors/INotifier.ts';
import type { _TypingScope } from '@rocket.chat/apps-engine/definition/accessors/INotifier.ts';
import type { IMessage } from '@rocket.chat/apps-engine/definition/messages';
import type { IRoom } from '@rocket.chat/apps-engine/definition/rooms';
import type { IUser } from '@rocket.chat/apps-engine/definition/users';
import { MessageBuilder } from './builders/MessageBuilder.ts';
import { AppObjectRegistry } from '../../AppObjectRegistry.ts';
import * as Messenger from '../messenger.ts';
import { require } from "../require.ts";

const { TypingScope } = require('@rocket.chat/apps-engine/definition/accessors/INotifier.js') as {
TypingScope: typeof _TypingScope;
};

export class Notifier implements INotifier {
private senderFn: typeof Messenger.sendRequest;
Expand Down
1 change: 0 additions & 1 deletion src/definition/ui/UIActionButtonContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ export enum UIActionButtonContext {
MESSAGE_BOX_ACTION = 'messageBoxAction',
USER_DROPDOWN_ACTION = 'userDropdownAction',
ROOM_SIDEBAR_ACTION = 'roomSideBarAction',
MESSAGE_TOOLBAR_STARS_ACTION = 'messageToolbarStarsAction',
}
11 changes: 0 additions & 11 deletions src/definition/uikit/IUIKitIncomingInteractionActionButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,13 @@ interface IUIKitIncomingInteractionActionButtonRoom extends IUIKitIncomingIntera
};
}

interface IUIKitIncomingInteractionActionButtonMessageToolbarStars extends IUIKitIncomingInteractionActionButtonBase {
message: IMessage;
room: IRoom;
tmid?: string;

payload: {
context: 'messageToolbarStarsAction';
};
}

interface IUIKitIncomingInteractionActionButtonUserDropdown extends IUIKitIncomingInteractionActionButtonBase {
payload: {
context: 'userDropdownAction';
};
}

export type IUIKitIncomingInteractionActionButton =
| IUIKitIncomingInteractionActionButtonMessageToolbarStars
| IUIKitIncomingInteractionActionButtonMessageBox
| IUIKitIncomingInteractionActionButtonMessage
| IUIKitIncomingInteractionActionButtonRoomSidebar
Expand Down

0 comments on commit f4db9c4

Please sign in to comment.