Remove unused enums

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-11-05 18:34:47 +00:00
parent f919d1654a
commit 464be37815
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
4 changed files with 2 additions and 35 deletions

View file

@ -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 } = {

View file

@ -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,
});

View file

@ -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

View file

@ -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",
}