mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(): add animation and call service & controllers (#259)
* feat(): add animation and call service & controllers - run animations on interval so we don't lose animations when walking through doors - move cl_call.ts to a class * fix(animation/service): make everything private except for open/closePhone and start/endPhoneCall
This commit is contained in:
1 parent
4ef89f679f
commit
398bfa2092
14 files changed
+412
-298
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { CallEvents } from '../../../typings/call';
|
||||
import { CallEvents, CallRejectReasons } from '../../../typings/call';
|
||||
import { getSource } from '../utils/miscUtils';
|
||||
import CallService from './calls.service';
|
||||
import { callLogger } from './calls.utils';
|
||||
@@ -21,9 +21,9 @@ onNet(CallEvents.ACCEPT_CALL, (transmitterNumber: string) => {
|
||||
);
|
||||
});
|
||||
|
||||
onNet(CallEvents.REJECTED, (transmitterNumber: string) => {
|
||||
onNet(CallEvents.REJECTED, (transmitterNumber: string, reason?: CallRejectReasons) => {
|
||||
const src = getSource();
|
||||
CallService.handleRejectCall(src, transmitterNumber).catch((e) =>
|
||||
CallService.handleRejectCall(src, transmitterNumber, reason).catch((e) =>
|
||||
callLogger.error(
|
||||
`Error occured in rejectcall event (${transmitterNumber}), Error: ${e.message}`,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user