From d279b31b8f98299fcf9461f7803a9e8d4a302ad5 Mon Sep 17 00:00:00 2001 From: Christopher Date: Tue, 18 May 2021 13:13:31 +0200 Subject: [PATCH] chore(phone): remove useless sendMessage --- phone/src/os/phone/hooks/usePhone.ts | 3 --- resources/client/cl_main.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/phone/src/os/phone/hooks/usePhone.ts b/phone/src/os/phone/hooks/usePhone.ts index 43fed84..5471e92 100644 --- a/phone/src/os/phone/hooks/usePhone.ts +++ b/phone/src/os/phone/hooks/usePhone.ts @@ -10,13 +10,11 @@ interface IUsePhone { openPhone(): void; closePhone(): void; isPhoneOpen: boolean; - isPhoneReady: boolean; } export const usePhone = (): IUsePhone => { const Nui = useNuiRequest(); const isPhoneOpen = useRecoilValue(phoneState.visibility); - const isPhoneReady = useRecoilValue(phoneState.phoneReady); const config = useRecoilValue(phoneState.resourceConfig); const { removeAlerts } = useNotifications(); @@ -34,6 +32,5 @@ export const usePhone = (): IUsePhone => { closePhone, openPhone, isPhoneOpen, - isPhoneReady, }; }; diff --git a/resources/client/cl_main.ts b/resources/client/cl_main.ts index ad29599..be62870 100644 --- a/resources/client/cl_main.ts +++ b/resources/client/cl_main.ts @@ -24,7 +24,6 @@ function fetchOnInitialize() { emitNet(ContactEvents.GET_CONTACTS); emitNet(MessageEvents.FETCH_MESSAGE_GROUPS); emitNet(TwitterEvents.GET_OR_CREATE_PROFILE); - sendMessage('PHONE', PhoneEvents.SET_PHONE_READY, true); sendMessage('PHONE', PhoneEvents.SET_CONFIG, config); }