mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(calls): handle invalid numbers
This commit is contained in:
1 parent
44a0d941b9
commit
478c5ffc63
4 files changed
+24
-2
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { CallEvents } from '../../typings/call';
|
||||
import { CallHistoryItem } from '../../typings/call';
|
||||
import { phoneCallStartAnim, phoneCallEndAnim } from './functions';
|
||||
import { IAlertProps } from '../../typings/alerts';
|
||||
|
||||
const exp = (global as any).exports;
|
||||
|
||||
@@ -127,3 +128,14 @@ onNet(CallEvents.FETCH_CALLS, (calls: CallHistoryItem[]) => {
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
onNet(CallEvents.SEND_ALERT, (alert: IAlertProps) => {
|
||||
console.log(alert);
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'DIALER',
|
||||
method: CallEvents.SEND_ALERT,
|
||||
data: alert,
|
||||
}),
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user