Skip to content

Commit

Permalink
feat: add new UI context (#794)
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Tapia <[email protected]>
  • Loading branch information
Dnouv and tapiarafael authored Aug 20, 2024
1 parent f8ffe96 commit faf5be8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/definition/ui/UIActionButtonContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export enum UIActionButtonContext {
MESSAGE_BOX_ACTION = 'messageBoxAction',
USER_DROPDOWN_ACTION = 'userDropdownAction',
ROOM_SIDEBAR_ACTION = 'roomSideBarAction',
MESSAGE_TOOLBAR_STARS_ACTION = 'messageToolbarStarsAction',
}
11 changes: 11 additions & 0 deletions src/definition/uikit/IUIKitIncomingInteractionActionButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,24 @@ 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 faf5be8

Please sign in to comment.