mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Merge pull request #61 from project-error/feat/calling-lua-ts
Feat/calling lua ts
This commit is contained in:
47 files changed
+1045
-182
No files matched your search
@@ -35,18 +35,19 @@ export const ContactList = () => {
|
||||
};
|
||||
const startCall = (number) => {
|
||||
console.log(number);
|
||||
Nui.send('phone:startCall', {
|
||||
Nui.send('phone:beginCall', {
|
||||
number,
|
||||
});
|
||||
};
|
||||
|
||||
const filteredRegEx = new RegExp(filteredContacts, "gi")
|
||||
|
||||
return (
|
||||
<List>
|
||||
{contacts.contacts
|
||||
.filter(
|
||||
(contact) =>
|
||||
contact.display.includes(filteredContacts.toLowerCase()) ||
|
||||
contact.number.includes(filteredContacts.toLowerCase())
|
||||
contact.display.match(filteredRegEx) || contact.number.match(filteredRegEx)
|
||||
)
|
||||
.map((contact) => (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user