mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +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;
|
||||
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,
|
||||
};
|
||||
};
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user