mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(phone): remove useless sendMessage
This commit is contained in:
1 parent
2bd4f4dc96
commit
d279b31b8f
2 files changed
-4
No files matched your search
@@ -10,13 +10,11 @@ interface IUsePhone {
|
|||||||
openPhone(): void;
|
openPhone(): void;
|
||||||
closePhone(): void;
|
closePhone(): void;
|
||||||
isPhoneOpen: boolean;
|
isPhoneOpen: boolean;
|
||||||
isPhoneReady: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const usePhone = (): IUsePhone => {
|
export const usePhone = (): IUsePhone => {
|
||||||
const Nui = useNuiRequest();
|
const Nui = useNuiRequest();
|
||||||
const isPhoneOpen = useRecoilValue(phoneState.visibility);
|
const isPhoneOpen = useRecoilValue(phoneState.visibility);
|
||||||
const isPhoneReady = useRecoilValue(phoneState.phoneReady);
|
|
||||||
const config = useRecoilValue(phoneState.resourceConfig);
|
const config = useRecoilValue(phoneState.resourceConfig);
|
||||||
|
|
||||||
const { removeAlerts } = useNotifications();
|
const { removeAlerts } = useNotifications();
|
||||||
@@ -34,6 +32,5 @@ export const usePhone = (): IUsePhone => {
|
|||||||
closePhone,
|
closePhone,
|
||||||
openPhone,
|
openPhone,
|
||||||
isPhoneOpen,
|
isPhoneOpen,
|
||||||
isPhoneReady,
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -24,7 +24,6 @@ function fetchOnInitialize() {
|
|||||||
emitNet(ContactEvents.GET_CONTACTS);
|
emitNet(ContactEvents.GET_CONTACTS);
|
||||||
emitNet(MessageEvents.FETCH_MESSAGE_GROUPS);
|
emitNet(MessageEvents.FETCH_MESSAGE_GROUPS);
|
||||||
emitNet(TwitterEvents.GET_OR_CREATE_PROFILE);
|
emitNet(TwitterEvents.GET_OR_CREATE_PROFILE);
|
||||||
sendMessage('PHONE', PhoneEvents.SET_PHONE_READY, true);
|
|
||||||
sendMessage('PHONE', PhoneEvents.SET_CONFIG, config);
|
sendMessage('PHONE', PhoneEvents.SET_CONFIG, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user