From f77cc4129d850596276b34ce9f7af611c069a601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=87=E3=83=AF=E3=83=B3=E3=82=B7=E3=83=A5?= <61188295+Dnouv@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:06:55 +0530 Subject: [PATCH] Revert "feat: add new UI context (#794)" This reverts commit faf5be85eaa1827bb54591147c5c4cf0a1431dc9. --- src/definition/ui/UIActionButtonContext.ts | 1 - .../uikit/IUIKitIncomingInteractionActionButton.ts | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/src/definition/ui/UIActionButtonContext.ts b/src/definition/ui/UIActionButtonContext.ts index fe6ccb403..34958a8a9 100644 --- a/src/definition/ui/UIActionButtonContext.ts +++ b/src/definition/ui/UIActionButtonContext.ts @@ -4,5 +4,4 @@ export enum UIActionButtonContext { MESSAGE_BOX_ACTION = 'messageBoxAction', USER_DROPDOWN_ACTION = 'userDropdownAction', ROOM_SIDEBAR_ACTION = 'roomSideBarAction', - MESSAGE_TOOLBAR_STARS_ACTION = 'messageToolbarStarsAction', } diff --git a/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts b/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts index 9e4d8aa7a..beea7181b 100644 --- a/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts +++ b/src/definition/uikit/IUIKitIncomingInteractionActionButton.ts @@ -64,16 +64,6 @@ interface IUIKitIncomingInteractionActionButtonRoom extends IUIKitIncomingIntera }; } -interface IUIKitIncomingInteractionActionButtonMessageToolbarStars extends IUIKitIncomingInteractionActionButtonBase { - message: IMessage; - room: IRoom; - tmid?: string; - - payload: { - context: 'messageToolbarStarsAction'; - }; -} - interface IUIKitIncomingInteractionActionButtonUserDropdown extends IUIKitIncomingInteractionActionButtonBase { payload: { context: 'userDropdownAction'; @@ -81,7 +71,6 @@ interface IUIKitIncomingInteractionActionButtonUserDropdown extends IUIKitIncomi } export type IUIKitIncomingInteractionActionButton = - | IUIKitIncomingInteractionActionButtonMessageToolbarStars | IUIKitIncomingInteractionActionButtonMessageBox | IUIKitIncomingInteractionActionButtonMessage | IUIKitIncomingInteractionActionButtonRoomSidebar