mirror of https://github.com/vector-im/riot-web
Remove unused enums
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28387/head
parent
f919d1654a
commit
464be37815
|
@ -19,9 +19,7 @@ import { XOR } from "../../../@types/common";
|
||||||
export enum E2EState {
|
export enum E2EState {
|
||||||
Verified = "verified",
|
Verified = "verified",
|
||||||
Warning = "warning",
|
Warning = "warning",
|
||||||
Unknown = "unknown",
|
|
||||||
Normal = "normal",
|
Normal = "normal",
|
||||||
Unauthenticated = "unauthenticated",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const crossSigningUserTitles: { [key in E2EState]?: TranslationKey } = {
|
const crossSigningUserTitles: { [key in E2EState]?: TranslationKey } = {
|
||||||
|
|
|
@ -43,6 +43,7 @@ import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
|
||||||
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
||||||
import { Action } from "../../../dispatcher/actions";
|
import { Action } from "../../../dispatcher/actions";
|
||||||
import { Filter } from "../dialogs/spotlight/Filter";
|
import { Filter } from "../dialogs/spotlight/Filter";
|
||||||
|
import { OpenSpotlightPayload } from "../../../dispatcher/payloads/OpenSpotlightPayload.ts";
|
||||||
|
|
||||||
export const createSpace = async (
|
export const createSpace = async (
|
||||||
client: MatrixClient,
|
client: MatrixClient,
|
||||||
|
@ -265,7 +266,7 @@ const SpaceCreateMenu: React.FC<{
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSearchClick = (): void => {
|
const onSearchClick = (): void => {
|
||||||
defaultDispatcher.dispatch({
|
defaultDispatcher.dispatch<OpenSpotlightPayload>({
|
||||||
action: Action.OpenSpotlight,
|
action: Action.OpenSpotlight,
|
||||||
initialFilter: Filter.PublicSpaces,
|
initialFilter: Filter.PublicSpaces,
|
||||||
});
|
});
|
||||||
|
|
|
@ -135,12 +135,6 @@ export enum Action {
|
||||||
*/
|
*/
|
||||||
OpenDialPad = "open_dial_pad",
|
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
|
* Fired when CallHandler has checked for PSTN protocol support
|
||||||
* payload: none
|
* payload: none
|
||||||
|
|
|
@ -11,38 +11,12 @@ export enum PerformanceEntryNames {
|
||||||
* Application wide
|
* Application wide
|
||||||
*/
|
*/
|
||||||
|
|
||||||
APP_STARTUP = "mx_AppStartup",
|
|
||||||
PAGE_CHANGE = "mx_PageChange",
|
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
|
* User
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VERIFY_E2EE_USER = "mx_VerifyE2EEUser", // ✅
|
|
||||||
LOGIN = "mx_Login", // ✅
|
LOGIN = "mx_Login", // ✅
|
||||||
REGISTER = "mx_Register", // ✅
|
REGISTER = "mx_Register", // ✅
|
||||||
|
|
||||||
/**
|
|
||||||
* VoIP
|
|
||||||
*/
|
|
||||||
|
|
||||||
SETUP_VOIP_CALL = "mx_SetupVoIPCall",
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue