Remove client phoneConfig event (#73)

* Remove client phoneConfig event

* Remove unused debug

* Remove unused import

* Remove unused import

* Remove duplicated functions | fix useEffect dependency | etc

* Fix warnings

* Update phone/src/apps/twitter/components/TwitterApp.tsx

Co-authored-by: Taso <[email protected]>

Co-authored-by: Taso <[email protected]>
This commit is contained in:
J Francisco RaderandTaso authored and GitHub committed 2021-02-10 12:04:28 -05:00
1 parent fdfd4133e2
commit 81f5e27064
12 files changed
+61 -81

No files matched your search

-12
View File
@@ -210,16 +210,6 @@ function noPhone() {
ESX.ShowNotification('Oi Mate, No El Telephono', false, false, 1);
}
function sendPhoneConfig() {
SendNuiMessage(
JSON.stringify({
app: 'PHONE',
method: 'phoneConfig',
data: config,
})
);
}
setTick(() => {
if (IsControlJustPressed(1, config.KeyTogglePhone)) {
Phone();
@@ -263,7 +253,6 @@ async function Phone() {
data: true,
})
);
sendPhoneConfig();
SetNuiFocus(true, true);
//SetNuiFocusKeepInput(true)
} else {
@@ -301,7 +290,6 @@ async function Phone() {
data: true,
})
);
sendPhoneConfig();
SetNuiFocus(true, true);
//SetNuiFocusKeepInput(true)
} else {