Browse Source

follow-up

master
Eduard Kuzmenko 3 years ago
parent
commit
a584ca6653
  1. 2
      src/helpers/string/convertInputKeyToKey.ts
  2. 2
      src/lib/appManagers/appNotificationsManager.ts
  3. 2
      src/lib/appManagers/appPrivacyManager.ts

2
src/helpers/string/convertInputKeyToKey.ts

@ -1,4 +1,4 @@ @@ -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;
}

2
src/lib/appManagers/appNotificationsManager.ts

@ -30,7 +30,7 @@ import IS_VIBRATE_SUPPORTED from "../../environment/vibrateSupport"; @@ -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,

2
src/lib/appManagers/appPrivacyManager.ts

@ -11,7 +11,7 @@ import appChatsManager from "./appChatsManager"; @@ -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,

Loading…
Cancel
Save