Remove unused enums
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f919d1654a
commit
464be37815
4 changed files with 2 additions and 35 deletions
|
@ -19,9 +19,7 @@ import { XOR } from "../../../@types/common";
|
|||
export enum E2EState {
|
||||
Verified = "verified",
|
||||
Warning = "warning",
|
||||
Unknown = "unknown",
|
||||
Normal = "normal",
|
||||
Unauthenticated = "unauthenticated",
|
||||
}
|
||||
|
||||
const crossSigningUserTitles: { [key in E2EState]?: TranslationKey } = {
|
||||
|
|
|
@ -43,6 +43,7 @@ import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
|
|||
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
||||
import { Action } from "../../../dispatcher/actions";
|
||||
import { Filter } from "../dialogs/spotlight/Filter";
|
||||
import { OpenSpotlightPayload } from "../../../dispatcher/payloads/OpenSpotlightPayload.ts";
|
||||
|
||||
export const createSpace = async (
|
||||
client: MatrixClient,
|
||||
|
@ -265,7 +266,7 @@ const SpaceCreateMenu: React.FC<{
|
|||
};
|
||||
|
||||
const onSearchClick = (): void => {
|
||||
defaultDispatcher.dispatch({
|
||||
defaultDispatcher.dispatch<OpenSpotlightPayload>({
|
||||
action: Action.OpenSpotlight,
|
||||
initialFilter: Filter.PublicSpaces,
|
||||
});
|
||||
|
|
|
@ -135,12 +135,6 @@ export enum Action {
|
|||
*/
|
||||
OpenDialPad = "open_dial_pad",
|
||||
|
||||
/**
|
||||
* Dial the phone number in the payload
|
||||
* payload: DialNumberPayload
|
||||
*/
|
||||
DialNumber = "dial_number",
|
||||
|
||||
/**
|
||||
* Fired when CallHandler has checked for PSTN protocol support
|
||||
* payload: none
|
||||
|
|
|
@ -11,38 +11,12 @@ export enum PerformanceEntryNames {
|
|||
* Application wide
|
||||
*/
|
||||
|
||||
APP_STARTUP = "mx_AppStartup",
|
||||
PAGE_CHANGE = "mx_PageChange",
|
||||
|
||||
/**
|
||||
* Events
|
||||
*/
|
||||
|
||||
RESEND_EVENT = "mx_ResendEvent",
|
||||
SEND_E2EE_EVENT = "mx_SendE2EEEvent",
|
||||
SEND_ATTACHMENT = "mx_SendAttachment",
|
||||
|
||||
/**
|
||||
* Rooms
|
||||
*/
|
||||
|
||||
SWITCH_ROOM = "mx_SwithRoom",
|
||||
JUMP_TO_ROOM = "mx_JumpToRoom",
|
||||
JOIN_ROOM = "mx_JoinRoom", // ✅
|
||||
CREATE_DM = "mx_CreateDM", // ✅
|
||||
PEEK_ROOM = "mx_PeekRoom",
|
||||
|
||||
/**
|
||||
* User
|
||||
*/
|
||||
|
||||
VERIFY_E2EE_USER = "mx_VerifyE2EEUser", // ✅
|
||||
LOGIN = "mx_Login", // ✅
|
||||
REGISTER = "mx_Register", // ✅
|
||||
|
||||
/**
|
||||
* VoIP
|
||||
*/
|
||||
|
||||
SETUP_VOIP_CALL = "mx_SetupVoIPCall",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue