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