mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(phone/contacts): fixed incorrect Nui.send property | history.goBack
This commit is contained in:
1 parent
32f6f6ebcc
commit
e51bcca7f8
4 files changed
+8
-9
No files matched your search
@@ -12,10 +12,7 @@ onNet(events.CONTACTS_SEND_CONTACTS, (contacts: any) => {
|
||||
|
||||
RegisterNuiCallbackType(events.CONTACTS_ADD_CONTACT);
|
||||
on(`__cfx_nui:${events.CONTACTS_ADD_CONTACT}`, (data: any, cb: Function) => {
|
||||
const display = data.name;
|
||||
const number = data.number;
|
||||
const avatar = data.avatar;
|
||||
emitNet(events.CONTACTS_ADD_CONTACT, number, display, avatar);
|
||||
emitNet(events.CONTACTS_ADD_CONTACT, data.number, data.display, data.avatar);
|
||||
cb();
|
||||
});
|
||||
|
||||
@@ -31,7 +28,6 @@ on(`__cfx_nui:${events.CONTACTS_UPDATE_CONTACT}`, (data: any, cb: Function) => {
|
||||
|
||||
onNet(events.CONTACTS_UPDATE_CONTACT_SUCCESS, () => {
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
console.log('did you update the contact??????????????????');
|
||||
});
|
||||
|
||||
RegisterNuiCallbackType(events.CONTACTS_DELETE_CONTACT);
|
||||
|
||||
@@ -31,7 +31,7 @@ export default {
|
||||
CONTACTS_SEND_CONTACTS: 'phone:sendContacts',
|
||||
CONTACTS_GET_CONTACTS: 'phone:getContacts',
|
||||
CONTACTS_ADD_CONTACT_NUI: 'contacts:add',
|
||||
CONTACTS_ADD_CONTACT: 'contacts:add',
|
||||
CONTACTS_ADD_CONTACT: 'phone:addContacts',
|
||||
CONTACTS_ADD_CONTACT_SUCCESS: 'contacts:addSuccess',
|
||||
CONTACTS_UPDATE_CONTACT: 'phone:updateContact',
|
||||
CONTACTS_DELETE_CONTACT: 'phone:deleteContact',
|
||||
|
||||
Reference in new issue
Block a user