mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(calls): fix some bugs encountered during refactor
This commit is contained in:
1 parent
10c5e97088
commit
af6e291368
9 files changed
+15
-15
No files matched your search
@@ -18,7 +18,7 @@ onNetPromise<InitializeCallDTO, StartCallEventData>(CallEvents.INITIALIZE_CALL,
|
||||
});
|
||||
});
|
||||
|
||||
onNetTyped(CallEvents.ACCEPT_CALL, (transmitterNumber: string) => {
|
||||
onNetTyped<TransmitterNumDTO>(CallEvents.ACCEPT_CALL, ({ transmitterNumber }) => {
|
||||
const src = getSource();
|
||||
CallService.handleAcceptCall(src, transmitterNumber).catch((e) =>
|
||||
callLogger.error(
|
||||
@@ -41,7 +41,7 @@ onNetTyped<TransmitterNumDTO>(CallEvents.REJECTED, (data) => {
|
||||
onNetPromise<EndCallDTO, void>(CallEvents.END_CALL, (reqObj, resp) => {
|
||||
CallService.handleEndCall(reqObj, resp).catch((e) => {
|
||||
callLogger.error(
|
||||
`Error occured in end call event (${reqObj.data.transmitter}), Error: ${e.message}`,
|
||||
`Error occured in end call event (${reqObj.data.transmitterNumber}), Error: ${e.message}`,
|
||||
);
|
||||
resp({ status: 'error', errorMsg: 'SERVER_ERROR' });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user