follow-up

This commit is contained in:
Eduard Kuzmenko 2022-03-25 01:18:34 +02:00
parent 8317d3b566
commit f799ee505d
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
export function convertInputKeyToKey<T extends string>(inputKey: string) {
export default function convertInputKeyToKey<T extends string>(inputKey: string) {
const str = inputKey.replace('input', '');
return (str[0].toLowerCase() + str.slice(1)) as T;
}

View File

@ -30,7 +30,7 @@ import IS_VIBRATE_SUPPORTED from "../../environment/vibrateSupport";
import { MUTE_UNTIL } from "../mtproto/mtproto_config";
import throttle from "../../helpers/schedulers/throttle";
import deepEqual from "../../helpers/object/deepEqual";
import { convertInputKeyToKey } from "../../helpers/string/convertInputKeyToKey";
import convertInputKeyToKey from "../../helpers/string/convertInputKeyToKey";
type MyNotification = Notification & {
hidden?: boolean,

View File

@ -11,7 +11,7 @@ import appChatsManager from "./appChatsManager";
import appUsersManager from "./appUsersManager";
import apiUpdatesManager from "./apiUpdatesManager";
import rootScope from "../rootScope";
import { convertInputKeyToKey } from "../../helpers/string/convertInputKeyToKey";
import convertInputKeyToKey from "../../helpers/string/convertInputKeyToKey";
export enum PrivacyType {
Everybody = 2,